RadioTool on wxMac
Christopher Barker
Chris.Barker at noaa.gov
Wed Apr 11 14:37:11 PDT 2007
Hi all,
I'm having trouble with the RadioTool on a toolbar on wxMac.
Mostly, it works: if I click to select a tool, it deselects all the =
others. However, if I click the already selected tool, it then deselects =
that one, so that none appear selected.
I could catch all the EVT_TOOLs, and then call ToggleTool to make sure =
it's toggled correctly, but that almost defeats the purpose of the =
RadioTool.
The irony is that I had written my own Radio-button-tool code before =
RadioTool existed. I checked it all to use RAdioTool, 'cause I thought =
it would be easier.
1) is anyone else seeing this?
2) could I do something different to prevent it?
Note that I"m placing the tool with a Sizer on a Panel, which I think =
means it's a "generic" one, rather than a "native" one.
It seems to work the same way on 2.6 and 2.8
sample enclosed.
-Chris
-- =
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ToolbarTest.py
Type: text/x-python
Size: 8787 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20070=
411/b88f27e0/ToolbarTest.py
More information about the wxpython-users
mailing list