summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-02 11:49:46 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-02 11:49:46 +0000
commita26cec27e1c0a161d24188d0259d0405b82c8b16 (patch)
tree217e8b830901ceec619b986fc46966acc71ed84a /ext/tk/lib/tkextlib
parent909e63ac3c9bdd284821cde2b88dcaaea1ae2a04 (diff)
* ext/tk/lib/tkextlib/tile/tprogressbar.rb: Tk::Tile::TProgressbar#start
takes optional argument `interval'. * ext/tk/sample/tkextlib/tile/demo.rb: emulate Tk::Tile::TProgressbar with Tk::Tile::TProgress in tile 0.4. (repeating buttons demo) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib')
-rw-r--r--ext/tk/lib/tkextlib/tile/tprogressbar.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tkextlib/tile/tprogressbar.rb b/ext/tk/lib/tkextlib/tile/tprogressbar.rb
index 3f47cd9b8b..238a458c05 100644
--- a/ext/tk/lib/tkextlib/tile/tprogressbar.rb
+++ b/ext/tk/lib/tkextlib/tile/tprogressbar.rb
@@ -34,8 +34,8 @@ class Tk::Tile::TProgressbar
tk_send_without_enc('step', amount)
end
- def start
- tk_call_without_enc('::tile::progressbar::start', @path)
+ def start(interval=None)
+ tk_call_without_enc('::tile::progressbar::start', @path, interval)
end
def stop