A Sex, 2003-07-04 �s 18:15, 100 jamz tech support escreveu:
> Hi,
>
> I am trying to set a menu option that will change the trigger events
> from entering an event box to clicking on an event box and back again
> while the program is running.
>
> This is for a child's game that I wore for my son and am trying to
> improve and release. It is going to be included on a custom knoppix cd
> that our lug is working on. This is why I want to make these changes on
> the fly.
>
> What I am doing so far is defining actionevent, conencting actionevent
> to the handler. Then I have the menu call a function that changes
> actionevent. By selective printing, I can see that actionevent does
> indeed change, but the actual event that triggers the callback does not
> change.
>
> Is it possible to unbind, and rebind?
bind:
signal_id = menuitem.connect("activate", handler);
rebind:
menuitem.disconnect(signal_id)
signal_uid = menuitem.connect("activate", new_handler)
Hope this helps.
--
Gustavo Jo�o Alves Marques Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/