]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/FileHistory.py
added missing button state
[wxWidgets.git] / wxPython / demo / FileHistory.py
index 98403b1493bfa3da55a85121b87df7a59dae5f62..b94b4567ebc56ef151c5f1f92e821273dc889668 100644 (file)
@@ -79,7 +79,7 @@ class TestPanel(wx.Panel):
 
 
     def OnRightClick(self, evt):
-        self.PopupMenu(self.menu, evt.GetPosition())
+        self.PopupMenu(self.menu)
 
 
     def OnFileOpenDialog(self, evt):
@@ -139,5 +139,5 @@ associated menu.
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])