PHP-GTK2 Newsletter
1.1 Hello World! |
| Written by kksou | ||||
| Wednesday, 12 March 2008 | ||||
ObjectiveLet’s get started learning php-gtk2 with this simple yet complete "hello world!" script. We will also understand the four key lines that constitute a standard php-gtk2 script. You will see these four lines in almost all the sample codes in this book. Overview
Sample Output
Sample Code
ExplanationFor almost all php-gtk2 scripts, you will find the following four key lines (highlighted in blue):
Note
$label = new GtkLabel("hello world!");
$window->add($label);
The first to create a new label, and the second to stuff the label inside the window.
$window->add(new GtkLabel("hello world!"));
User reviews Average user ratings: 5.0 (from 6 users) Note: You have to be a registered member to leave a comment. Free registration here. |
||||
| < Prev | Next > |
|---|








October 22, 2008 5:17am
December 28, 2008 7:28pm
February 27, 2009 4:27am
April 22, 2009 12:42pm
July 13, 2009 10:29pm
June 22, 2010 2:03am