As the screenshot shows, there is a spaning column above the lower
column. Some of those columns span two columns. That's what I need,
the problem is, how to do that with wxPython?
As the screenshot shows, there is a spaning column above the lower
column. Some of those columns span two columns. That's what I need,
the problem is, how to do that with wxPython?
Thanks.
Victor Lin.
I'm pretty sure the included ListCtrl doesn't have this feature
included. However, Andrea recently created a pure python
implementation of this control that you can probably hack the way you
want. The source can be found here:
As the screenshot shows, there is a spaning column above the lower
column. Some of those columns span two columns. That's what I need,
the problem is, how to do that with wxPython?
You can make a custom widget for the top row and use the wx.RendererNative to draw it so it will look like a native list ctrl header. (Using the DrawHeaderButton method.) Then you can position that custom control above the listCtrl and it should look very much like the screen shot at your link, you'll just need to manage the position of each column as changes are made in the listctrl.