On Tue, Sep 09, 2003 at 01:42:03PM -0700, Colin Fox wrote:
> def run_button_toggled(self, widget, event=None):
> print "Toggle called with %s" % (type(widget))
> x = widget.get_property('active')
> self.world.set_running( x )
> print "Calling set_active..."
> self
On Tue, 2003-09-09 at 12:43, Christian Reis wrote:
> How do you avoid having set_active() emitting the toggle signal every
> time it's triggered? I'm trying to figure out how that would not loop
> recursively. Let's see:
>
> A -> C
> B -> C
> C -> A, B -> C (loop)
>
> Then again, it m
On Tue, Sep 09, 2003 at 10:32:34AM -0700, Colin Fox wrote:
> I'm using the same technique. However, I did one thing a little
> differently. I have a function called 'Run' - I want the user to be able
> to start and stop the running of something.
>
> I created a run toggle, and a run menu item. The
On Tue, 2003-09-09 at 08:40, Iñigo Serna wrote:
> first, thanks for the help, but it doesn't work.
>
> El mar, 09-09-2003 a las 16:36, Christian Reis escribió:
> > The correct answer to your inquiry is, of course, "Why do you want to do
> > that?"; however:
>
> I want to control the state of a va
On Tue, Sep 09, 2003 at 05:40:16PM +0200, Iñigo Serna wrote:
> > if not self.block_toggle:
> >
> > self.block_toggle = 1
> >
> > > self.toggle.set_active(self.opt)
> >
> > self.block_toggle = 0
> >
> > > print self.opt
> >
> > -- and the same code here
> >
first, thanks for the help, but it doesn't work.
El mar, 09-09-2003 a las 16:36, Christian Reis escribió:
> The correct answer to your inquiry is, of course, "Why do you want to do
> that?"; however:
I want to control the state of a varible (in fact, the visibility of the
grid of the second quest
The correct answer to your inquiry is, of course, "Why do you want to do
that?"; however:
On Tue, Sep 09, 2003 at 04:28:36PM +0200, Iñigo Serna wrote:
> I have a problem when sharing a value depending on the state of 2
> widgets.
You have the answer in your hand: you need to use a shared lock
v
Hi all,
[Python 2.3, pygtk & gnome-python 2.0.0, Linux 2.4.18]
I have a problem when sharing a value depending on the state of 2
widgets.
For example, there is a variable called self.opt, whose value is
controlled by a CheckButton and by a ToogleButton.
When I change the value with one widget I