I’m trying to use wxListCtrl in my application, following the example in the demo. I’m running wxPython 2.3.3.1 on Python 2.2.1, on WinXP. In the demo (and my own code), I’m unable to trigger the EVT_LIST_ITEM_DESELECTED event. I would expect it to fire e.g. when clicking row 1 (EVT_LIST_ITEM_SELECTED), then row 2 (EVT_LIST_ITEM_DESELECTED on row 1, EVT_LIST_ITEM_SELECTED on row 2). Also when ctrl-clicking several rows to select them, then ctrl-clicking one of them to deselect. The GUI shows what I would expect, but the event never fires. Any help hugely appreciated!
In another matter related to the wxListCtrl and the demo, I got the mixin working (thanks to help from the list), but the arrow icons aren’t working for me. I’ve copied the following lines from the demo:
self.il = wxImageList(16, 16)
self.sm_up = self.il.Add(images.getSmallUpArrowBitmap())
self.sm_dn = self.il.Add(images.getSmallDnArrowBitmap())
self.il.Add() results in an assert dialog due to “invalid image”. Any thoughts? I’m afraid I’m pretty well out of my depth, here.
Thanks,
John Hopkins