Need Help with optimizing code for first time PhP-GTK program
| From: | Malk0 | Date: | Fri, 27 Apr 2007 09:23:46 +0000 |
| Subject: | Need Help with optimizing code for first time PhP-GTK program | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7803@lists.php.net to get a copy of this message | ||
personnaly to achieved a thing like this one in php-gtk1 i would have
used gtkdrawingarea. But now that there's gtkImage and stuff like that
i'll probably would use GD to create a buffered image and then
redisplay it at each change (not tested yet but would certainly do one
or the other of this one).
cheers
On 4/27/07, Marc Quinton <mquinton@gmail.com> wrote:
On 4/27/07, Mark_G <mgrothman@gmail.com> wrote: No I want the array how it is. I dont want a matrix effect. - in your example, there is to much GtkLabel widget ; thoses widgets are organized in row-column. - php (and gtk) does not support very well as large arrays. - on line 81, you should not use usleep() function ; for delay, you should use timeout_add(), perhaps you should try to use a font with a fixed width and adresse random chars directly in an array.-- -- le savoir ne vaut que s'il est partagé par tous -- -- -- le savoir ne vaut que s'il est partagé par tous --