]>
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]
21 """PyAlaMode standalone application."""
23 def __init__(self
, filename
=None):
24 self
.filename
= filename
25 wx
.App
.__init
__(self
, redirect
=False)
28 wx
.InitAllImageHandlers()
29 self
.frame
= editor
.EditorNotebookFrame(filename
=self
.filename
)
31 self
.SetTopWindow(self
.frame
)
34 def main(filename
=None):
35 if not filename
and len(sys
.argv
) > 1:
36 filename
= sys
.argv
[1]
38 filename
= os
.path
.realpath(filename
)
42 if __name__
== '__main__':