Reputation: 10902
I have a tutorial on how to use a wx.ListCtrl in (style = wx.LC_REPORT) mode but I only use one column:
self.InsertColumn(0, "Item")
How can I either:
I don't really need the field label I am using above (i.e. "Item").
Upvotes: 1
Views: 718
Reputation: 263147
Try using a wx.ListBox control instead of a wx.ListCtrl.
The display mode of ListCtrl
closest to what you're looking for is wx.LC_LIST
, and in that mode the control will render multiple items side-by-side if it has enough horizontal extent.
On the other hand, a simple ListBox
does exactly what you're looking for.
Upvotes: 2