note 442 added to gtk.method.main.php

From: Date: Thu, 12 Aug 2004 16:51:19 +0000
Subject: note 442 added to gtk.method.main.php
Groups: php.gtk.webmaster 
Request: Send a blank email to php-gtk-webmaster+get-2572@lists.php.net to get a copy of this message
Die funktion Gtk::Main bildet die Hauptschleife. Bei einem Programm das mit einem GUI arbeitet, ist es wünschenswert das nach dem abarbeiten nicht direkt alles beendet wird, hierzu benutzt man eine Hauptschleife. In der schleife Gtk::Main() werden dann alle Controls für Gtk Gehandelt. Ihr baut also zuerst alles so auf, wie es sein soll, und ruft dann einfach die funktion Gtk::Main(); auf. The function Gtk::Main runs the main loop. In GUI programming it isn't practicable to shutdown the script after working all code, for this you will use the main loop. The loop Gtk::Main() handels all the controls needed for youre GUI. So, after building the GUI just call the Gtk::Main(); function to let the gui work. http://gtk.php.net:80/manual/de/gtk.method.main.php

« previous php.gtk.webmaster (#2572) next »