diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-20 05:10:59 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-20 05:10:59 +0000 |
commit | 8a73532bd86d237cc6314015821a84523b0e2bbf (patch) | |
tree | 10a1470f37a79aff08d1c0e0459b4b46b06d91da /ext/tk/lib/tk/clock.rb | |
parent | fd71f860a1f73a244964673003092424f670bea9 (diff) |
* ext/tk/lib/multi-tk.rb: supports new features of Tcl/Tk8.5a2
* ext/tk/lib/tk/clock.rb: ditto
* ext/tk/lib/tk/text.rb: ditto
* ext/tk/lib/tk/panedwindow.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk/clock.rb')
-rw-r--r-- | ext/tk/lib/tk/clock.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/tk/lib/tk/clock.rb b/ext/tk/lib/tk/clock.rb index 823b8a6341..3581152c8b 100644 --- a/ext/tk/lib/tk/clock.rb +++ b/ext/tk/lib/tk/clock.rb @@ -5,6 +5,10 @@ require 'tk' module Tk module Clock + def self.add(clk, *args) + tk_call_without_enc('clock','add', clk, *args).to_i + end + def self.clicks(ms=nil) case ms when nil @@ -53,5 +57,11 @@ module Tk def self.seconds tk_call_without_enc('clock','seconds').to_i end + def self.milliseconds + tk_call_without_enc('clock','milliseconds').to_i + end + def self.microseconds + tk_call_without_enc('clock','microseconds').to_i + end end end |