Re: changing a widgets callbck function runtime
| From: | Steph | Date: | Sat, 11 Jan 2003 05:32:54 +0000 |
| Subject: | Re: changing a widgets callbck function runtime | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2884@lists.php.net to get a copy of this message | ||
I don't think I'm alone in thinking 'huh?' here
Can you be a bit more gentle with your explanations pls? :)
----- Original Message -----
From: "firepage" <firepage@firepages.org>
To: <php-gtk-general@lists.php.net>
Sent: Saturday, January 11, 2003 5:26 AM
Subject: [PHP-GTK] changing a widgets callbck function runtime
Hi,
Is it possible to change the callback for a widgets signal after it has
been set? eg if I
$button->connect('clicked',callback);
can I later override that default 'clicked' callback? I am currently
setting flags onclick and then running a switch inside the function but
if I could change the callback it would be nice and lose a lot of
variable baggage.
Regards,
Simon.