X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd658b8c330edc73882df565b4632c1677c465f5..d285d708a229ece6ad606a460bcbf048c65d252b:/wxPython/demo/wxTreeCtrl.py?ds=sidebyside diff --git a/wxPython/demo/wxTreeCtrl.py b/wxPython/demo/wxTreeCtrl.py index 5d48ef5050..877c92bf61 100644 --- a/wxPython/demo/wxTreeCtrl.py +++ b/wxPython/demo/wxTreeCtrl.py @@ -80,6 +80,7 @@ class TestTreeCtrlPanel(wxPanel): EVT_RIGHT_UP(self.tree, self.OnRightUp) + def OnRightClick(self, event): pt = event.GetPosition(); item, flags = self.tree.HitTest(pt) @@ -88,7 +89,6 @@ class TestTreeCtrlPanel(wxPanel): self.tree.SelectItem(item) - def OnRightUp(self, event): pt = event.GetPosition(); item, flags = self.tree.HitTest(pt) @@ -165,15 +165,15 @@ def runTest(frame, nb, log): +overview = """\ +A tree control presents information as a hierarchy, with items that may be expanded to show further items. Items in a tree control are referenced by wxTreeItemId handles. +""" +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) - - - -overview = """\ -A tree control presents information as a hierarchy, with items that may be expanded to show further items. Items in a tree control are referenced by wxTreeItemId handles. - -"""