You have to explicitly set an item to have an image to get that smiley on there.
Its using:
index = self.list.InsertImageStringItem(sys.maxint, data[0], self.idx1)
Its that ‘self.idx1’ that is making the demo have the smiley.
If you want no image at all, just use 'self.list.InsertStringItem(index, label)
Or change the ‘self.idx1’ to -1.
···
On 7/12/07, Bob Klahn bobklahn@comcast.net wrote:
I’m working with the wxPython ListCtrl demo.
I want to keep the up and down icons that appear when the user clicks
on a column to sort by that column.But I don’t want any icons to be displayed in the data
listing. I.e., I don’t want those smiley faces in the leftmost column.
How do I accomplish this? I’m coming up empty.
Bob
P.S. As a last resort, I could use a “blank” icon, but that’s hardly
satisfying.
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
–
Stephen Hansen
Development
Advanced Prepress Technology
shansen@advpubtech.com
(818) 748-9282