diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-15 01:18:57 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-15 01:18:57 +0000 |
| commit | 61d17071d1ab695d5e91a23493f15dca95335f9e (patch) | |
| tree | d7dca8b035286a8a852c021318fa04a4efa43aa8 /ext/tk/sample/tkextlib/bwidget | |
| parent | 0811bd70e416daa03924286c8f324d76faad2a09 (diff) | |
| download | ruby-61d17071d1ab695d5e91a23493f15dca95335f9e.tar.gz ruby-61d17071d1ab695d5e91a23493f15dca95335f9e.tar.xz ruby-61d17071d1ab695d5e91a23493f15dca95335f9e.zip | |
* ext/tk/, ext/tcltklib/: bug fix
* 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
* ext/tk/lib/tk.rb (_genobj_for_tkwidget): support autoload Tk ext classes
* ext/tk/lib/tk/canvas.rb and so on: remove the parent widget type check
for items (e.g. canvas items; depends on the class) to avoid some troubles
on Tk extension widget class definition.
* ext/tk/lib/tkextlib/: add Iwidget and TkTable extension support
* ext/tk/sample/tkextlib/: add samples of Iwidget and TkTable
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/tkextlib/bwidget')
| -rw-r--r-- | ext/tk/sample/tkextlib/bwidget/LICENSE.orig | 2 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/bwidget/basic.rb | 3 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/bwidget/dnd.rb | 3 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/bwidget/manager.rb | 3 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/bwidget/select.rb | 3 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/bwidget/tmpldlg.rb | 3 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/bwidget/tree.rb | 3 |
7 files changed, 19 insertions, 1 deletions
diff --git a/ext/tk/sample/tkextlib/bwidget/LICENSE.orig b/ext/tk/sample/tkextlib/bwidget/LICENSE.orig index 4238e4387..0c4c16fe4 100644 --- a/ext/tk/sample/tkextlib/bwidget/LICENSE.orig +++ b/ext/tk/sample/tkextlib/bwidget/LICENSE.orig @@ -5,7 +5,7 @@ ### Original Tcl source files are not include in this directry, ### ### because of all of them are rewrited to Ruby files. ### ### However, the bitmap data files ('bwidgtet.xbm' and 'x1.xbm') ### - ### included in this directory are referd from BWidget source ### + ### included in this directory are quoted from BWidget source ### ### archive. So, those bitmaps are under the following license. ### ###################################################################### diff --git a/ext/tk/sample/tkextlib/bwidget/basic.rb b/ext/tk/sample/tkextlib/bwidget/basic.rb index 09a29b99a..f622c142e 100644 --- a/ext/tk/sample/tkextlib/bwidget/basic.rb +++ b/ext/tk/sample/tkextlib/bwidget/basic.rb @@ -1,6 +1,9 @@ # # basic demo --- called from demo.rb # +unless Object.const_defined?('DemoVar') + fail RuntimeError, "This is NOT a stand alone script. This script is called from 'demo.rb'. " +end module DemoBasic @@var = TkVariable.new_hash diff --git a/ext/tk/sample/tkextlib/bwidget/dnd.rb b/ext/tk/sample/tkextlib/bwidget/dnd.rb index 9938b4b09..fd6cc40dd 100644 --- a/ext/tk/sample/tkextlib/bwidget/dnd.rb +++ b/ext/tk/sample/tkextlib/bwidget/dnd.rb @@ -1,6 +1,9 @@ # # dnd demo --- called from demo.rb # +unless Object.const_defined?('DemoVar') + fail RuntimeError, "This is NOT a stand alone script. This script is called from 'demo.rb'. " +end module DemoDnD def self.create(nb) diff --git a/ext/tk/sample/tkextlib/bwidget/manager.rb b/ext/tk/sample/tkextlib/bwidget/manager.rb index 2935a2651..65bbe0f9e 100644 --- a/ext/tk/sample/tkextlib/bwidget/manager.rb +++ b/ext/tk/sample/tkextlib/bwidget/manager.rb @@ -1,6 +1,9 @@ # # manager demo --- called from demo.rb # +unless Object.const_defined?('DemoVar') + fail RuntimeError, "This is NOT a stand alone script. This script is called from 'demo.rb'. " +end module DemoManager @@progress = TkVariable.new(false) diff --git a/ext/tk/sample/tkextlib/bwidget/select.rb b/ext/tk/sample/tkextlib/bwidget/select.rb index e25ab5c35..a04d8da48 100644 --- a/ext/tk/sample/tkextlib/bwidget/select.rb +++ b/ext/tk/sample/tkextlib/bwidget/select.rb @@ -1,6 +1,9 @@ # # select demo --- called from demo.rb # +unless Object.const_defined?('DemoVar') + fail RuntimeError, "This is NOT a stand alone script. This script is called from 'demo.rb'. " +end module DemoSelect @@var = TkVariable.new_hash diff --git a/ext/tk/sample/tkextlib/bwidget/tmpldlg.rb b/ext/tk/sample/tkextlib/bwidget/tmpldlg.rb index 758924951..1ed84e21a 100644 --- a/ext/tk/sample/tkextlib/bwidget/tmpldlg.rb +++ b/ext/tk/sample/tkextlib/bwidget/tmpldlg.rb @@ -1,6 +1,9 @@ # # templdlg demo --- called from demo.rb # +unless Object.const_defined?('DemoVar') + fail RuntimeError, "This is NOT a stand alone script. This script is called from 'demo.rb'. " +end module DemoDialog @@tmpl = TkVariable.new_hash diff --git a/ext/tk/sample/tkextlib/bwidget/tree.rb b/ext/tk/sample/tkextlib/bwidget/tree.rb index 0d9fc3805..9bfa4f3cc 100644 --- a/ext/tk/sample/tkextlib/bwidget/tree.rb +++ b/ext/tk/sample/tkextlib/bwidget/tree.rb @@ -1,6 +1,9 @@ # # templdlg demo --- called from demo.rb # +unless Object.const_defined?('DemoVar') + fail RuntimeError, "This is NOT a stand alone script. This script is called from 'demo.rb'. " +end module DemoTree @@count = 0 |
