self.list.SetImageList(self.il, wxIMAGE_LIST_SMALL)
# Why doesn't this show up on MSW???
- self.list.SetToolTip(wxToolTip("This is a ToolTip!"))
+ #self.list.SetToolTip(wxToolTip("This is a ToolTip!"))
if 0:
# for normal, simple columns, you can add them like this:
self.log.WriteText("OnColClick: %d\n" % event.GetColumn())
def OnColRightClick(self, event):
- self.log.WriteText("OnColRightClick: %d\n" % event.GetColumn())
+ item = self.list.GetColumn(event.GetColumn())
+ self.log.WriteText("OnColRightClick: %d %s\n" %
+ (event.GetColumn(), (item.GetText(), item.GetAlign(),
+ item.GetWidth(), item.GetImage())))
def OnColBeginDrag(self, event):
self.log.WriteText("OnColBeginDrag\n")
def OnPopupOne(self, event):
self.log.WriteText("Popup one\n")
+ print "FindItem:", self.list.FindItem(-1, "Roxette")
+ print "FindItemData:", self.list.FindItemData(-1, 11)
def OnPopupTwo(self, event):
self.log.WriteText("Popup two\n")
+overview = """\
+A list control presents lists in a number of formats: list view, report view, icon view and small icon view. Elements are numbered from zero.
+"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
-
-
-
-
-
-overview = """\
-A list control presents lists in a number of formats: list view, report view, icon view and small icon view. Elements are numbered from zero.
-
-"""