class ButtonBoxDemo
Button Boxes¶ ↑
The Button Box widgets are used to arrange buttons with padding.
Public Class Methods
new(main_window)
click to toggle source
# File gtk3/sample/gtk-demo/button_box.rb, line 10 def initialize(main_window) @window = Gtk::Window.new(:toplevel) @window.screen = main_window.screen @window.title = "Button Boxes" main_vbox = Gtk::Box.new(:vertical, 0) @window.add(main_vbox) frame_horz = generate_horizontal_frame main_vbox.pack_start(frame_horz, :expand => true, :fill => true, :padding => 0) frame_vert = generate_vertical_frame main_vbox.pack_start(frame_vert, :expand => true, :fill => true, :padding => 0) end
Public Instance Methods
run()
click to toggle source
# File gtk3/sample/gtk-demo/button_box.rb, line 25 def run if !@window.visible? @window.show_all else @window.destroy end @window end