projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
accept files in wxHtmlEasyPrinting::{Print,Preview}File, not only URLs
[wxWidgets.git]
/
wxPython
/
demo
/
template.py
diff --git
a/wxPython/demo/template.py
b/wxPython/demo/template.py
index 4ccfcd4c4bf2721cad14ea769eaf7fa2e6409f75..3019d1f42e231192d625d7e2151fd0a4e9fa5a86 100644
(file)
--- a/
wxPython/demo/template.py
+++ b/
wxPython/demo/template.py
@@
-1,12
+1,12
@@
-from wxPython.wx import *
+import wx # This module uses the new wx namespace
#----------------------------------------------------------------------
#----------------------------------------------------------------------
-class TestPanel(wxPanel):
+class TestPanel(wx
.
Panel):
def __init__(self, parent, log):
self.log = log
def __init__(self, parent, log):
self.log = log
- wxPanel.__init__(self, parent, -1)
+ wx
.
Panel.__init__(self, parent, -1)
#----------------------------------------------------------------------
#----------------------------------------------------------------------
@@
-23,3
+23,11
@@
overview = """<html><body>
</body></html>
"""
</body></html>
"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
+