summaryrefslogtreecommitdiff
path: root/lib/python2.7/site-packages/wx-3.0-msw/wx/py/PyAlaModeTest.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/site-packages/wx-3.0-msw/wx/py/PyAlaModeTest.py')
-rw-r--r--lib/python2.7/site-packages/wx-3.0-msw/wx/py/PyAlaModeTest.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/python2.7/site-packages/wx-3.0-msw/wx/py/PyAlaModeTest.py b/lib/python2.7/site-packages/wx-3.0-msw/wx/py/PyAlaModeTest.py
new file mode 100644
index 0000000..78cffdf
--- /dev/null
+++ b/lib/python2.7/site-packages/wx-3.0-msw/wx/py/PyAlaModeTest.py
@@ -0,0 +1,36 @@
+#!/usr/bin/env python2
+"""PyAlaModeTest is a programmer's editor."""
+
+__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
+__cvsid__ = "$Id$"
+__revision__ = "$Revision$"[11:-2]
+
+import wx
+from wx import py
+
+import os
+import sys
+
+class App(wx.App):
+ """PyAlaModeTest standalone application."""
+
+ def __init__(self, filename=None):
+ self.filename = filename
+ wx.App.__init__(self, redirect=False)
+
+ def OnInit(self):
+ wx.InitAllImageHandlers()
+ self.frame = py.editor.EditorShellNotebookFrame(filename=self.filename)
+ self.frame.Show()
+ self.SetTopWindow(self.frame)
+ return True
+
+def main(filename=None):
+ app = App(filename)
+ app.MainLoop()
+
+if __name__ == '__main__':
+ filename = None
+ if len(sys.argv) > 1:
+ filename = os.path.realpath(sys.argv[1])
+ main(filename)