aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib/tcllib/plotchart.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-06 09:42:12 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-06 09:42:12 +0000
commitd8465ff9abf63545262b7d8f88b069522ae82823 (patch)
treeea1597d41d1de11febd12cc38b71838e0691bfcb /ext/tk/lib/tkextlib/tcllib/plotchart.rb
parent3d8fa5556164f3aa2f6f1733ffe4a96fc4f33ed8 (diff)
downloadruby-d8465ff9abf63545262b7d8f88b069522ae82823.tar.gz
* 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
Diffstat (limited to 'ext/tk/lib/tkextlib/tcllib/plotchart.rb')
-rw-r--r--ext/tk/lib/tkextlib/tcllib/plotchart.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/ext/tk/lib/tkextlib/tcllib/plotchart.rb b/ext/tk/lib/tkextlib/tcllib/plotchart.rb
index 108507b05b..b22a4ebbdf 100644
--- a/ext/tk/lib/tkextlib/tcllib/plotchart.rb
+++ b/ext/tk/lib/tkextlib/tcllib/plotchart.rb
@@ -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))