diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-30 08:44:19 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-30 08:44:19 +0000 |
| commit | bbcbe0b7e5d5969d6a55cc885a323107e415ce44 (patch) | |
| tree | 760e0cf10c7c7083f6f784f16b602dd562214dd6 /ext/tk/sample/tkextlib/tktable/basic.rb | |
| parent | 2f50816ad9df366072d9a72a590180b2a78d07c2 (diff) | |
| download | ruby-bbcbe0b7e5d5969d6a55cc885a323107e415ce44.tar.gz ruby-bbcbe0b7e5d5969d6a55cc885a323107e415ce44.tar.xz ruby-bbcbe0b7e5d5969d6a55cc885a323107e415ce44.zip | |
* ext/tk/tcltklib.c: add TclTkIp#_create_console() method to create
a Tcl/Tk's console window.
* ext/tk/lib/multi-tk.rb: support TclTkIp#_create_console() method.
* ext/tk/lib/remote-tk.rb: ditto.
* ext/tk/lib/tk/console.rb: ditto.
* ext/tk/lib/tk.rb: update RELEASE_DATE
* ext/tk/sample/demo-*/check2.rb: use 'return' in the Proc object.
* ext/tk/sample/tkextlib/**: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/tkextlib/tktable/basic.rb')
| -rw-r--r-- | ext/tk/sample/tkextlib/tktable/basic.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/sample/tkextlib/tktable/basic.rb b/ext/tk/sample/tkextlib/tktable/basic.rb index ece46b318..0d2d48893 100644 --- a/ext/tk/sample/tkextlib/tktable/basic.rb +++ b/ext/tk/sample/tkextlib/tktable/basic.rb @@ -29,11 +29,11 @@ table = Tk::TkTable.new(:rows=>rows, :cols=>cols, :variable=>ary, :rowstretchmode=>:last, :colstretchmode=>:last, :rowtagcommand=>proc{|row| row = Integer(row) - return 'OddRow' if row>0 && row%2 == 1 + (row>0 && row%2 == 1)? 'OddRow': '' }, :coltagcommand=>proc{|col| col = Integer(col) - return 'OddCol' if col>0 && col%2 == 1 + (col>0 && col%2 == 1)? 'OddCol': '' }, :selectmode=>:extended, :sparsearray=>false) |
