diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-09 19:29:29 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-09 19:29:29 +0000 |
| commit | a77557a6b12033a845b1d2ef35e23210dccbb98e (patch) | |
| tree | 5e84584302570f87a94a98d9c30e1ca67e270a55 /ext/tk/lib/tkextlib/vu | |
| parent | 238ba9f095bc1d95c9531e427ddcc80e0e36a6ba (diff) | |
* ext/tk/lib/tk.rb: better operation for SIGINT when processing callbacks.
* ext/tk/lib/tk/msgcat.rb: ditto.
* ext/tk/lib/tk/variable.rb: ditto.
* ext/tk/lib/tk/timer.rb: ditto.
* ext/tk/lib/tk/validation.rb: add Tk::ValidateConfigure.__def_validcmd()
to define validatecommand methods easier
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib/vu')
| -rw-r--r-- | ext/tk/lib/tkextlib/vu/pie.rb | 1 | ||||
| -rw-r--r-- | ext/tk/lib/tkextlib/vu/spinbox.rb | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ext/tk/lib/tkextlib/vu/pie.rb b/ext/tk/lib/tkextlib/vu/pie.rb index cacca594e..b4506e10b 100644 --- a/ext/tk/lib/tkextlib/vu/pie.rb +++ b/ext/tk/lib/tkextlib/vu/pie.rb @@ -2,6 +2,7 @@ # ::vu::pie widget # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) # +require 'tk' # create module/class module Tk diff --git a/ext/tk/lib/tkextlib/vu/spinbox.rb b/ext/tk/lib/tkextlib/vu/spinbox.rb index f58643413..b6499645a 100644 --- a/ext/tk/lib/tkextlib/vu/spinbox.rb +++ b/ext/tk/lib/tkextlib/vu/spinbox.rb @@ -5,6 +5,7 @@ # a standard spinbox (<= 8.3) # This is the same as the 8.4 core spinbox widget. # +require 'tk' if (Tk::TK_MAJOR_VERSION < 8 || (Tk::TK_MAJOR_VERSION == 8 && Tk::TK_MINOR_VERSION < 4)) @@ -14,4 +15,8 @@ if (Tk::TK_MAJOR_VERSION < 8 || Tk.tk_call('namespace', 'import', '::vu::spinbox') end -Tk::Vu::Spinbox = TkSpinbox +module Tk + module Vu + Spinbox = TkSpinbox + end +end |
