diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-06 03:44:00 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-06 03:44:00 +0000 |
commit | 58d86a203544ebe3ba795867534c93f52b22c2d4 (patch) | |
tree | f85db3e7d924e7892c5221dc7e56d6330eb22034 /ext/tk/sample | |
parent | 3c3f54c7a36813a51ceef9db7f79f9a6122455c6 (diff) | |
download | ruby-58d86a203544ebe3ba795867534c93f52b22c2d4.tar.gz |
* ext/tk/lib/{tk.rb,tk/itemconfig.rb}: configure creates
TkVariable if key name is 'variable' or 'textvariable'
by default. [ruby-dev:26749]
* ext/tk/lib/tk/{label,radiobutton}.rb: removed its own
{variable,textvariable} function.
* ext/tk/lib/tk/variable.rb: retains backward conpatibility.
(written by Hidetoshi NAGAI)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample')
-rw-r--r-- | ext/tk/sample/tkextlib/tile/demo.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/sample/tkextlib/tile/demo.rb b/ext/tk/sample/tkextlib/tile/demo.rb index fcda3e810a..39592b88ec 100644 --- a/ext/tk/sample/tkextlib/tile/demo.rb +++ b/ext/tk/sample/tkextlib/tile/demo.rb @@ -549,8 +549,8 @@ else # tile 0.5 or earlier scale.command{|value| progress.set(value)} vscale.command{|value| vprogress.set(value)} else # this would also work. (via TkVariable#trace) - v1 = $V.ref(:SCALE) - v2 = $V.ref(:VSCALE) + v1 = scale.variable + v2 = vscale.variable v1.trace('w', proc{ progress.set(v1.value) }) v2.trace('w', proc{ vprogress.set(v2.value) }) end |