mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/lib : improve framework of developping Tcl/Tk extension wrappers
* BWidget extension support on Ruby/Tk git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d8fa55561
commit
d8465ff9ab
138 changed files with 8457 additions and 426 deletions
|
@ -58,12 +58,7 @@
|
|||
#
|
||||
|
||||
require 'tk'
|
||||
|
||||
# call setup script for general 'tkextlib' libraries
|
||||
require 'tkextlib/setup.rb'
|
||||
|
||||
# call setup script
|
||||
require File.join(File.dirname(File.expand_path(__FILE__)), 'setup.rb')
|
||||
require 'tkextlib/tcllib.rb'
|
||||
|
||||
# TkPackage.require('Plotchart', '0.9')
|
||||
TkPackage.require('Plotchart')
|
||||
|
@ -71,6 +66,13 @@ TkPackage.require('Plotchart')
|
|||
module Tk
|
||||
module Tcllib
|
||||
module Plotchart
|
||||
def self.package_version
|
||||
begin
|
||||
TkPackage.require('Plotchart')
|
||||
rescue
|
||||
''
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -122,7 +124,7 @@ module Tk::Tcllib::Plotchart
|
|||
|
||||
############################
|
||||
module ChartMethod
|
||||
include TkUtil
|
||||
include TkCore
|
||||
|
||||
def title(str)
|
||||
tk_call_without_enc(@chart, 'title', _get_eval_enc_str(str))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue