Here is a quick way to build a popup menu supporting event
registration from a GtkWidget. Menu items
are passed to the class constructor as a list of labels.
This class emits activate signals with full
context (x,y coordinates, button ...).
The GtkEntry widget is more pleasant to use
when it is fitted with auto-completion help using the
GtkEntryCompletion widget. This example show how
to use it.
This code snippet shows one of the many ways to handle multiple windows in
PHP-GTK 2. In the following example will build 3 classes
(Application, GtkWindow_One
and GtkWindow_Two).
this script is based on example in the PHP-GTK 2 manual, which was left unfinished. So here is a working example with editable columns.
Building a list for php-gtk2 using the complete framework is
really complex task. When you only need to display a data tree
and collect user selection, please, use this class.
It very easy to use, no need to take care of complex
GtkTreeView classes.
Displaying a directory tree with php-gtk is not really simple.
But with a little help, you will be able to create a new Widget
Tree based on GtkTreeView. You can create
new widgets with php-gtk in a few lines of code. This task is
far more involved with pure C/Gtk code.
Comentários recentes
47 semanas 2 dias atrás
48 semanas 2 dias atrás
48 semanas 5 dias atrás
51 semanas 2 dias atrás
1 ano 19 semanas atrás
1 ano 23 semanas atrás
1 ano 27 semanas atrás
1 ano 27 semanas atrás
1 ano 27 semanas atrás
1 ano 44 semanas atrás