Class: MainApp::ButtonPanel

Inherits:
Gtk::HButtonBox
  • Object
show all
Defined in:
lib/hotplate/gems/rubyzip-1.1.7/samples/gtkRubyzip.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeButtonPanel

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

#extractButtonObject (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

#openButtonObject (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