PHP-GTK2 Newsletter
|
1.4 Adding two or more widgets |
| Written by kksou | ||||
| Wednesday, 12 March 2008 | ||||
ObjectiveUp 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. OverviewThe 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.
Sample Output
Sample Code
Explanation
Note
User reviews There are no user reviews yet. Note: You have to be a registered member to leave a comment. Free registration here. |
||||
| < Prev | Next > |
|---|





