]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/PyAlaMode.py
1 """PyAlaMode is a programmer's editor."""
3 __author__
= "Patrick K. O'Brien <pobrien@orbtech.com>"
5 __revision__
= "$Revision$"[11:-2]
15 """PyAlaMode standalone application."""
17 def __init__(self
, filename
=None):
18 self
.filename
= filename
19 wx
.App
.__init
__(self
, redirect
=False)
22 wx
.InitAllImageHandlers()
23 self
.frame
= editor
.EditorNotebookFrame(filename
=self
.filename
)
25 self
.SetTopWindow(self
.frame
)
28 def main(filename
=None):
29 if not filename
and len(sys
.argv
) > 1:
30 filename
= sys
.argv
[1]
32 filename
= os
.path
.realpath(filename
)
36 if __name__
== '__main__':