use the run module when run standalone.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -310,7 +310,9 @@ def runTest(frame, nb, log):
|
|||||||
win = TestPanel(nb, log)
|
win = TestPanel(nb, log)
|
||||||
return win
|
return win
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
app = wx.PySimpleApp()
|
if __name__ == '__main__':
|
||||||
dlg = FormDialog()
|
import sys,os
|
||||||
dlg.ShowModal()
|
import run
|
||||||
|
run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user