Class: MainApp::ButtonPanel
- Inherits:
-
Gtk::HButtonBox
- Object
- Gtk::HButtonBox
- MainApp::ButtonPanel
- Defined in:
- lib/hotplate/gems/rubyzip-1.1.7/samples/gtkRubyzip.rb
Instance Attribute Summary collapse
-
#extractButton ⇒ Object
readonly
Returns the value of attribute extractButton.
-
#openButton ⇒ Object
readonly
Returns the value of attribute openButton.
Instance Method Summary collapse
-
#initialize ⇒ ButtonPanel
constructor
A new instance of ButtonPanel.
Constructor Details
#initialize ⇒ ButtonPanel
Returns a new instance of ButtonPanel.
47 48 49 50 51 52 53 54 55 |
# File 'lib/hotplate/gems/rubyzip-1.1.7/samples/gtkRubyzip.rb', line 47 def initialize super set_layout(Gtk::BUTTONBOX_START) set_spacing(0) @openButton = Gtk::Button.new("Open archive") @extractButton = Gtk::Button.new("Extract entry") pack_start(@openButton) pack_start(@extractButton) end |
Instance Attribute Details
#extractButton ⇒ Object (readonly)
Returns the value of attribute extractButton.
46 47 48 |
# File 'lib/hotplate/gems/rubyzip-1.1.7/samples/gtkRubyzip.rb', line 46 def extractButton @extractButton end |
#openButton ⇒ Object (readonly)
Returns the value of attribute openButton.
46 47 48 |
# File 'lib/hotplate/gems/rubyzip-1.1.7/samples/gtkRubyzip.rb', line 46 def openButton @openButton end |