I have a Panel with a bunch of pictures placed on it in a GridSizer layout. How can I draw a highlighted color around the edge of an image or its border to show that it has been selected upon a mouse click event?
A:
You could put each picture in a panel, and use SetBackgroundColour()
to set the background color of the panel.
tom10
2010-08-07 17:48:39
A:
Take a look at the Widget Inspection Tool's code. It can highlight any widget. On my machine, it's in the "_InspectionHighlighter" class in the inspection.py file, which is here: C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\lib
You can read about the tool here: http://wiki.wxpython.org/Widget%20Inspection%20Tool
Mike Driscoll
2010-08-09 17:39:23