1.4 Adding two or more widgets
|Written by kksou|
|Wednesday, 12 March 2008|
Up until now, we have only added one widget to GtkWindow - either a label or a button. Suppose we want to add both the label and the button.
The GtkWindow widget is called a bin in php-gtk. A bin can contain one and only one child widget. To stuff more than one widgets in a GtkWindow, we need containers — widgets that can hold two or more widgets.
In this example, we will use a GtkVBox. As the name suggests, this is a vertical container that can be used to “pack” widgets vertically.
|< Prev||Next >|