RE: [PHP-GTK] Book recommendations and some other questions ...

From: Date: Wed, 14 Aug 2002 15:03:02 +0000
Subject: RE: [PHP-GTK] Book recommendations and some other questions ...
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2325@lists.php.net to get a copy of this message
<snip> > Really, I just wanted to know if there were any book recommendations (thanks > Richard for putting this back on the list) and if a PHP-GTK app could > maintain 'state'. Richard, the infinite loop idea could be OK, but may > be more resource intensive than desired, (for instance; if you were monitoring > a change in values in a database). Tha infinite loop thing is not an idea, it's simply how PHP-GTK works. First of all it's suited for desktop application development. In your code, first you need to define callback functions for different actions (signals), then you need to connect those functions to the signals, and go into that infinite loop. I don't know of any PHP-GTK books, you may find GTK+ books useful (for signal and widget documentation). </snip> That's how I thought it would work, although like I say I haven't had a lot of experience with PHP-GTK yet other than playing with the examples. I'd guess that to monitor database values (say, to plot a real time graph???) what you'd have to do is create some kind of event which was triggered every, say, second. At which point you update the graph, or the field or whatever. Don't know if there is any kind of onTimer function, but that's how I would think it would work. Richy ========================================== Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: rblack@datavisibility.co.uk

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