The general steps to creating a widget in Ruby-GNOME2 are:
Gtk::Widget#show lets GTK know that we are done setting the attributes of the widget, and it is ready to be displayed. You may also use Gtk::Widget#hide to make it disappear again. The order in which you show the widgets is not important, but I suggest showing the main window last so the whole window pops up at once rather than seeing the indvidual widgets come up on the screen as they're formed. The children of a widget (a window is a widget too) will not be displayed until the window itself is hsow using the Gtk::Widget#show or Gtk::Widget#show_all methods.
Prev | Next |