X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a705ee4785d3943f0ebe3b01c25b76e0dff02772..f9ee64b1356530b7f5c957d250d2a1dcbef60f60:/wxPython/demo/wxListCtrl.py diff --git a/wxPython/demo/wxListCtrl.py b/wxPython/demo/wxListCtrl.py index e54e9afe47..b861392e54 100644 --- a/wxPython/demo/wxListCtrl.py +++ b/wxPython/demo/wxListCtrl.py @@ -82,14 +82,14 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin): tID = wxNewId() self.il = wxImageList(16, 16) - bmp = images.getSmilesBitmap() - #idx1 = self.il.AddWithColourMask(bmp, wxWHITE) - idx1 = self.il.Add(bmp) - bmp = images.getSmallUpArrowBitmap() - self.sm_up = self.il.Add(bmp) - bmp = images.getSmallDnArrowBitmap() - self.sm_dn = self.il.Add(bmp) + idx1 = self.il.Add(images.getSmilesBitmap()) + self.sm_up = self.il.Add(images.getSmallUpArrowBitmap()) + self.sm_dn = self.il.Add(images.getSmallDnArrowBitmap()) + + #idx1 = self.il.AddIcon(wxIconFromXPMData(images.getSmilesData())) + #self.sm_up = self.il.AddIcon(wxIconFromXPMData(images.getSmallUpArrowData())) + #self.sm_dn = self.il.AddIcon(wxIconFromXPMData(images.getSmallDnArrowData())) self.list = wxListCtrl(self, tID, style=wxLC_REPORT|wxSUNKEN_BORDER)#|wxLC_VRULES|wxLC_HRULES) @@ -223,6 +223,10 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin): def OnColBeginDrag(self, event): self.log.WriteText("OnColBeginDrag\n") + ## Show how to not allow a column to be resized + #if event.GetColumn() == 0: + # event.Veto() + def OnColDragging(self, event): self.log.WriteText("OnColDragging\n")