]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/wx/py/PyAlaModeTest.py
wxCheckListBox doesn't require wxUSE_OWNER_DRAWN when using WXUNIVERSAL
[wxWidgets.git] / wxPython / wx / py / PyAlaModeTest.py
... / ...
CommitLineData
1"""PyAlaModeTest is a programmer's editor."""
2
3__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
4__cvsid__ = "$Id$"
5__revision__ = "$Revision$"[11:-2]
6
7import wx
8from wx import py
9
10import os
11import sys
12
13class App(wx.App):
14 """PyAlaModeTest standalone application."""
15
16 def __init__(self, filename=None):
17 self.filename = filename
18 wx.App.__init__(self, redirect=False)
19
20 def OnInit(self):
21 wx.InitAllImageHandlers()
22 self.frame = py.editor.EditorShellNotebookFrame(filename=self.filename)
23 self.frame.Show()
24 self.SetTopWindow(self.frame)
25 return True
26
27def main(filename=None):
28 app = App(filename)
29 app.MainLoop()
30
31if __name__ == '__main__':
32 filename = None
33 if len(sys.argv) > 1:
34 filename = os.path.realpath(sys.argv[1])
35 main(filename)