[pygtk] Signal Blocking
Tony Nelson
tonynelson at georgeanelson.com
Thu Nov 29 08:11:10 WST 2007
At 11:34 AM -0800 11/28/07, Shandy Brown wrote:
>I didn't get a response to this question regarding the right way to
>block a signal. I have reworked my example to be much much smaller so
>that hopefully it garners some eyeballs.
>
>Again, if my approach is fundamentally wrong, please let me know.
>
>To reiterate the problem: I basically want two widgets to affect each
>other's values. But if I do this naievely, like so...
>
>Spinbutton
> on_value_changed:
if Entry.get_text != new_text:
> Entry.set_text(
new_text )
>Entry
> on_changed:
if Spinbutton.get_value() != new_value:
> Spinbutton.set_value(
new_value )
?
--
____________________________________________________________________
TonyN.:' <mailto:tonynelson at georgeanelson.com>
' <http://www.georgeanelson.com/>
More information about the pygtk
mailing list