Class: TK::Button
- Inherits:
-
TkButton
- Object
- TkButton
- TK::Button
- Defined in:
- lib/wiki_lyrics/gui/gui-tk.rb
Instance Method Summary collapse
-
#initialize(parent, text, *args) ⇒ Button
constructor
A new instance of Button.
- #is_enabled ⇒ Object
- #set_enabled(enabled) ⇒ Object
Constructor Details
Instance Method Details
#is_enabled ⇒ Object
55 56 57 |
# File 'lib/wiki_lyrics/gui/gui-tk.rb', line 55 def is_enabled() return state() != "disabled" end |
#set_enabled(enabled) ⇒ Object
51 52 53 |
# File 'lib/wiki_lyrics/gui/gui-tk.rb', line 51 def set_enabled( enabled ) self.state = enabled ? "normal" : "disabled" end |