Re: non interactive actions

From: Date: Thu, 23 Oct 2003 16:26:20 +0000
Subject: Re: non interactive actions
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3982@lists.php.net to get a copy of this message
> > > 1) Is possible (and how) to define actions that happen non > > > interactively from the user and wich will update an element > > > of the gui? > > > > 1. if I understand your question correctly - not on win32, except via a > > timer. *nix-based systems have i/o sources that win32 systems don't (or > > at least, that aren't exposed). > > Well for that question, I was meaning that how can the gtk-gui take an > action from something else than a user action, for exemple: > if ( file_exists('/home/blue_prawn/test-file.xml') ) { > // Here the interaction with the gui to update it > } > > I tryed basicly like this, but of course it don't work at all lol No, that _should_ work..! I thought you meant things like environmental changes.. > > > 2) Very similar question: Is it possible (and how too) to make an > > > action that will update an element of the gtk-gui at regular > > > periode for exemple every 8 seconds? > > > > 2. http://gtk.php.net/manual/en/gtk.method.timeout_add.php > > Thanks a lot! it was exactly what I was looking for :) > One more question about it: > What happens if the callback function is called every half seconds, > and that this callback takes more than half a second to exectute itself? Guess :-I > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.gtk.general (#3982) next »