Re: changing a widgets callbck function runtime

From: Date: Sat, 11 Jan 2003 07:06:57 +0000
Subject: Re: changing a widgets callbck function runtime
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2888@lists.php.net to get a copy of this message
Steph wrote:
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
$x = $button->connect('clicked',callback);...... ...... $button->disconnect($x); $x = $button->connect('clicked','something_else'); ..... ..... either that or have a function name, and relay it: function callback() { $GLOBALS['button_callback_function'](); } which ever takes your fancy.... Regards Alan
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.
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

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