How do you set up a global lock? How is it bound to a toggle button? Or, based on the state of the lock, how do I control whether the button is active or not? Sorry, I'm really new. Thanks for your help.
On Jun 29, 12:18pm, Christian Reis wrote: > Subject: Re: [pygtk] toggle button question > On Mon, Jun 23, 2003 at 09:42:04AM -0500, Adam Harder wrote: > > I know you can get the current state of a toggle button by .active, but is > > there any way to actually change the appearence of the button without emitting > > a toggled or clicked signal? I've tried to use .set_state(), but when I mouse > > over the button it reverts to it's state prior to when I called set_state(). > > Isn't it easier to use a global lock and check in the handler if it is > set? > > An other alternative would be to use emit_stop_by_name() in a custom > handler, but that's horrid. > > Take care, > -- > Christian Reis, Senior Engineer, Async Open Source, Brazil. > http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL >-- End of excerpt from Christian Reis _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
