ListCtrl with sorter Mixin, but would like no picture per item

I am trying to use the following:
            self.list.InsertStringItem(x, data[0])

Instead of :
            self.list.InsertImageStringItem(x, data[0], self.idx1)

When I use the InsertStringItem (in the demo.wxListCtrl) I still get the Smiles for each line. I could use InsertImageStringItem with "-1" but I hoped to get rid of the little space that uses - not that nice if one never needs an image.

Can anyone help me figure out what I am doing wrong.

Thanks and see you
Werner

With the listctrl, you either get all images or none. You can turn them all off, but you can't disable the space allocated for image in the listctrl.

If you require images in the title bars for the up/down arrows, so you must have images for each line too :frowning:

It's just a fact of the listctrl. This should be entered on Wiki or a FAQ somewher, because it's asked about once ever 2 months.

-Joe

Werner F. Bruhin wrote:

···

I am trying to use the following:
           self.list.InsertStringItem(x, data[0])

Instead of :
           self.list.InsertImageStringItem(x, data[0], self.idx1)

When I use the InsertStringItem (in the demo.wxListCtrl) I still get the Smiles for each line. I could use InsertImageStringItem with "-1" but I hoped to get rid of the little space that uses - not that nice if one never needs an image.

Can anyone help me figure out what I am doing wrong.

Thanks and see you
Werner

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org