More updates.
Began splitting up wxEntry so wxPython can use the bits it needs instead of copying code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,12 +72,12 @@ class RunDemoApp(wxApp):
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) != 2:
|
||||
def main(argv):
|
||||
if len(argv) != 2:
|
||||
print "Please specify a demo module name on the command-line"
|
||||
raise SystemExit
|
||||
|
||||
name = sys.argv[1]
|
||||
name = argv[1]
|
||||
module = __import__(name)
|
||||
|
||||
|
||||
@@ -87,6 +87,6 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
main(sys.argv)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user