Class: AnimatedImageLabel
- Inherits:
-
AnimatedTextLabel
- Object
- TkLabel
- AnimatedTextLabel
- AnimatedImageLabel
- Defined in:
- sample/demos-en/anilabel.rb,
sample/demos-jp/anilabel.rb
Overview
animated image
Instance Attribute Summary collapse
-
#destroy_image ⇒ Object
Returns the value of attribute destroy_image.
Instance Method Summary collapse
-
#initialize(*args) ⇒ AnimatedImageLabel
constructor
A new instance of AnimatedImageLabel.
Methods inherited from AnimatedTextLabel
Constructor Details
#initialize(*args) ⇒ AnimatedImageLabel
Returns a new instance of AnimatedImageLabel.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'sample/demos-en/anilabel.rb', line 82 def initialize(*args) super(*args) @destroy_image = false @btag.bind_append('Destroy'){ if @destroy_image begin self.image.delete rescue end end } end |
Instance Attribute Details
#destroy_image ⇒ Object
Returns the value of attribute destroy_image
94 95 96 |
# File 'sample/demos-en/anilabel.rb', line 94 def destroy_image @destroy_image end |