Class: AnimatedTextLabel
- Defined in:
- sample/demos-jp/anilabel.rb,
sample/demos-en/anilabel.rb
Overview
animated label
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(*args) ⇒ AnimatedTextLabel
constructor
A new instance of AnimatedTextLabel.
- #start(interval) ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(*args) ⇒ AnimatedTextLabel
Returns a new instance of AnimatedTextLabel.
58 59 60 61 62 63 64 65 |
# File 'sample/demos-jp/anilabel.rb', line 58 def initialize(*args) super(*args) @timer = TkTimer.new{ _animation_callback } @timer.loop_exec = -1 # bind('Destroy'){ @timer.stop } @btag = TkBindTag.new('Destroy'){ @timer.stop } self.(@btag) end |