Class: MyConfig::ConfComboHolder
- Inherits:
-
Gtk::HBox
- Object
- Gtk::HBox
- MyConfig::ConfComboHolder
- Includes:
- Conf
- Defined in:
- lib/MyConfig.rb
Defined Under Namespace
Classes: ConfCombo
Instance Attribute Summary collapse
-
#conf_text ⇒ Object
Returns the value of attribute conf_text.
Instance Method Summary collapse
-
#initialize(label_text, conf_text, values) ⇒ ConfComboHolder
constructor
A new instance of ConfComboHolder.
- #update ⇒ Object
Methods included from Conf
#get_conf, #load_conf, #save_conf, #set_conf
Constructor Details
#initialize(label_text, conf_text, values) ⇒ ConfComboHolder
Returns a new instance of ConfComboHolder.
23 24 25 26 27 28 |
# File 'lib/MyConfig.rb', line 23 def initialize(label_text,conf_text,values) @conf_text=conf_text super() pack_start(Gtk::Label.new(label_text).set_alignment(0,0.5)) pack_end(@combo=ConfCombo.new(values)) end |
Instance Attribute Details
#conf_text ⇒ Object
Returns the value of attribute conf_text.
29 30 31 |
# File 'lib/MyConfig.rb', line 29 def conf_text @conf_text end |
Instance Method Details
#update ⇒ Object
31 32 33 |
# File 'lib/MyConfig.rb', line 31 def update @combo.set_active(get_conf(0,0,@conf_text)) end |