X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..2706d2fedee4cfc34ba0c838bd157bc0d9718ce1:/wxPython/demo/FindReplaceDialog.py diff --git a/wxPython/demo/FindReplaceDialog.py b/wxPython/demo/FindReplaceDialog.py index 54cc07ee3b..5180882231 100644 --- a/wxPython/demo/FindReplaceDialog.py +++ b/wxPython/demo/FindReplaceDialog.py @@ -63,8 +63,6 @@ class TestPanel(wx.Panel): et = evt.GetEventType() - #print evt.GetReplaceString() - if et in map: evtType = map[et] else: @@ -77,7 +75,7 @@ class TestPanel(wx.Panel): else: replaceTxt = "" - self.log.write("%s -- Find text: %s %s Flags: %d \n" % + self.log.write("%s -- Find text: %s Replace text: %s Flags: %d \n" % (evtType, evt.GetFindString(), replaceTxt, evt.GetFlags())) @@ -119,5 +117,5 @@ will be invalid after the parent dialog is destroyed. 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:])