Class: VR::SimpleComboBoxEntry

Inherits:
Gtk::ComboBoxEntry
  • Object
show all
Defined in:
lib/SimpleComboBoxEntry.rb

Instance Method Summary collapse

Constructor Details

#initialize(active_choice, *choices) ⇒ SimpleComboBoxEntry

Returns a new instance of SimpleComboBoxEntry.



5
6
7
8
9
10
# File 'lib/SimpleComboBoxEntry.rb', line 5

def initialize(active_choice, *choices)
	super(true)
	append_text(active_choice)
	choices.each { |c|  append_text(c) if c != active_choice }
	self.active = 0
end