From b91be9807d12f88ffde05033f19a0226d0feba31 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 20 Oct 2000 16:31:08 +0000 Subject: [PATCH] a platform fix in the demo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/wxTreeCtrl.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wxPython/demo/wxTreeCtrl.py b/wxPython/demo/wxTreeCtrl.py index 95484e065c..ec7dfb4868 100644 --- a/wxPython/demo/wxTreeCtrl.py +++ b/wxPython/demo/wxTreeCtrl.py @@ -28,7 +28,7 @@ class TestTreeCtrlPanel(wxPanel): tID = NewId() self.tree = MyTreeCtrl(self, tID, wxDefaultPosition, wxDefaultSize, - wxTR_HAS_BUTTONS | wxTR_EDIT_LABELS)# | wxTR_MULTIPLE) + wxTR_HAS_BUTTONS | wxTR_EDIT_LABELS | wxTR_MULTIPLE) #il = wxImageList(16, 16) #idx1 = il.Add(wxBitmap('bitmaps/smiles.bmp', wxBITMAP_TYPE_BMP)) @@ -135,11 +135,12 @@ class TestTreeCtrlPanel(wxPanel): def OnSelChanged(self, event): self.item = event.GetItem() self.log.WriteText("OnSelChanged: %s\n" % self.tree.GetItemText(self.item)) - self.log.WriteText("BoundingRect: %s\n" % - self.tree.GetBoundingRect(self.item, true)) + if wxPlatform == '__WXMSW__': + self.log.WriteText("BoundingRect: %s\n" % + self.tree.GetBoundingRect(self.item, true)) #items = self.tree.GetSelections() #print map(self.tree.GetItemText, items) - + event.Skip() #---------------------------------------------------------------------------