Class: TK::CheckBox
- Inherits:
-
TkCheckButton
- Object
- TkCheckButton
- TK::CheckBox
- Defined in:
- lib/wiki_lyrics/gui/gui-tk.rb
Instance Method Summary collapse
- #get_value ⇒ Object (also: #value, #is_checked, #get_checked, #checked)
-
#initialize(parent, text, *args) ⇒ CheckBox
constructor
A new instance of CheckBox.
- #is_enabled ⇒ Object
- #set_enabled(enabled) ⇒ Object
Constructor Details
Instance Method Details
#get_value ⇒ Object Also known as: value, is_checked, get_checked, checked
329 330 331 |
# File 'lib/wiki_lyrics/gui/gui-tk.rb', line 329 def get_value() super() != "0" end |
#is_enabled ⇒ Object
325 326 327 |
# File 'lib/wiki_lyrics/gui/gui-tk.rb', line 325 def is_enabled() return state() != "disabled" end |
#set_enabled(enabled) ⇒ Object
321 322 323 |
# File 'lib/wiki_lyrics/gui/gui-tk.rb', line 321 def set_enabled( enabled ) self.state = enabled ? "normal" : "disabled" end |