Re: non interactive actions

From: Date: Thu, 23 Oct 2003 15:17:59 +0000
Subject: Re: non interactive actions
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3981@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 > > 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?

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