widgets on a wx.grd

A wx.Grid is a solution, but you need an editor and a renderer.
Find here attached the one I built for myself, and has been tested without bugs (so far) for many months.

rbchoicegrid.py (9.71 KB)

···

2008/6/3 Timothy Grant timothy.grant@gmail.com:

I have a Class that works reasonably well consisting of six vertically aligned wx.Choice widgets in a GridBagSizer to the right of the each wx.Choice has three wx.StaticText widgets to its right. The StaticText widgets get updated with values and all works flawlessly, the problem is it looks horrible. The StaticText widgets change alignment based on content. they don’t align neatly vertically, etc.

I figured a wx.Grid would be a perfect resolution to all the above problems so started re-implementing the Class using a wx.Grid as the base. My first problem is that I can’t get the Choice widgets to appear unless the cell editor for that cell is active. Is it possible to make the wx.Choice float on top of the cell all the time?


Stand Fast,
tjg.


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users