[wxPython-users] One line start command.

Saketh Bhamidipati saketh.bhamidipati at gmail.com
Sun Sep 24 12:54:55 PDT 2006


Can you please specify your problem? I'm not sure what you're asking.

Do you mean opening files from the command line? Like "python
WaltsProgram.py test.txt"?

Here are a few random suggestions:

   - Change the global MainEditor in your TestFrame class - create a
   self.stc field in the class instead. You want to avoid global if you
   can.
   - Remove the app =3D wx.App(0) call in your TestFrame class - you should
   be calling that in the main block.
   - Change the name "TestFrame" to something more descriptive - your
   application is probably more than a test
   - Change the names of the constants to capitalized letters with
   underscores between the words - this is just convention (i.e. change
   AutoFillStartLen to AUTO_FILL_START_LENGTH)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200609=
24/ad4fb8d1/attachment.htm


More information about the wxpython-users mailing list