I've created three image toggle buttons, and I'd like to set them
where only one button can be toggled at a time. I'm sure a simple if-
else statement would handle this, but I'm having trouble finding what
would be the condition.
(This is probably a trivial question to people who are proficient with
wxPython. :x)
One approach would be to Disable the other two when one of them is
pressed.
···
On Aug 27, 2:48 pm, Reverie <cvale...@gmail.com> wrote:
I've created three image toggle buttons, and I'd like to set them
where only one button can be toggled at a time. I'm sure a simple if-
else statement would handle this, but I'm having trouble finding what
would be the condition.
(This is probably a trivial question to people who are proficient with
wxPython. :x)
In the event handler for one button call SetValue(False) on the other buttons.
···
On 8/27/10 12:48 PM, Reverie wrote:
I've created three image toggle buttons, and I'd like to set them
where only one button can be toggled at a time. I'm sure a simple if-
else statement would handle this, but I'm having trouble finding what
would be the condition.
(This is probably a trivial question to people who are proficient with
wxPython. :x)
On Aug 27, 8:43 pm, Robin Dunn <ro...@alldunn.com> wrote:
On 8/27/10 12:48 PM, Reverie wrote:
> I've created three image toggle buttons, and I'd like to set them
> where only one button can be toggled at a time. I'm sure a simple if-
> else statement would handle this, but I'm having trouble finding what
> would be the condition.
> (This is probably a trivial question to people who are proficient with
> wxPython. :x)
In the event handler for one button call SetValue(False) on the other
buttons.
--
Robin Dunn
Software Craftsmanhttp://wxPython.org