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