gtk::timeout help

From: Date: Fri, 23 Mar 2001 14:34:15 +0000
Subject: gtk::timeout help
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1080@lists.php.net to get a copy of this message
So I've read through the archives on the use of gtk::timeout() and thought I had it figured out....can somebody tell me what I'm doing wrong here? I'm returning true, but it seems to then try to execute a function '1' (true) on the second call. Should I be returning the function name? <b>Warning</b>: Unable to call handler callback '1' specified in /home/richp/sysman/test/test.php on line 5 in <b>main.php</b> on line <b>9</b><br> (main.php just creates an instance of this class). <?php class testclass { function testclass() { gtk::timeout_add(1000,$this->test()); } function test() { echo "Test message\n"; return true; } } ?> TIA, --rdp -- Rich Payne rpayne@alphalinux.org www.alphalinux.org

« previous php.gtk (#1080) next »