Class: AnimatedTextLabel
- Defined in:
- sample/demos-en/anilabel.rb,
sample/demos-jp/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.
56 57 58 59 60 61 62 63 |
# File 'sample/demos-en/anilabel.rb', line 56 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 |