class PixmapSample

Public Class Methods

new() click to toggle source
Calls superclass method SampleWindow.new
# File gtk2/sample/testgtk/pixmap.rb, line 36
def initialize
  super("pixmap")

  vbox = Gtk::VBox.new(false, 0)
  add(vbox)

  button = Gtk::Button.new
  vbox.pack_start(button, false, false, 10)

  label = Gtk::Label.new("Pixmap\ntest")
  boxbutton = Gtk::HBox.new(false, 0)
  boxbutton.border_width = 2
  boxbutton.add(Gtk::Image.new("test.xpm"))
  boxbutton.add(label)
  button.add(boxbutton)

  vbox.add(Gtk::HSeparator.new)

  button = Gtk::Button.new("close")
  button.signal_connect("clicked"){destroy}
  vbox.pack_start(button, false, false, 10)
end