[pygtk] Min and max values of multiple spinbuttons
Frédéric
frederic.mantegazza at gbiloba.org
Sun Aug 17 18:44:57 WST 2008
On dimanche 17 août 2008, Timo wrote:
> Hello, I have 3 spinbuttons in my program. What I want is that
> spinbutton 1 has always the lowest value and can not be more than
> spinbutton 2. Spinbutton 2 should always be between 1 and 3. And
> spinbvutton 3 should always have the biggest value.
> So is there a way to stop spinbutton 1 when it reaches the vlaue (or
> value -1) of spinbutton 2 and so on?
Just add callbacks on the spinbuttons change state, and change the min/max
values of others.
--
Frédéric
http://www.gbiloba.org
More information about the pygtk
mailing list