Re: wxpython - passing arg to wx.app OnInit

2005-10-23 Thread Peter Hansen
Stuart McGraw wrote: > I simplied the my code for posting. In my real program, the > thing being passed is not a command line argument per se, > but the result of signifigant processing dependent on the > command line argument. I do not want to repeat that > processing in the wx.App method. > W

Re: wxpython - passing arg to wx.app OnInit

2005-10-23 Thread Stuart McGraw
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Stuart McGraw wrote: > > I have a wxPython app, conventionally structured > > with a Application class derived from wx.App. > > My problem is that the app accepts a command > > line argument that must be acted upon within

Re: wxpython - passing arg to wx.app OnInit

2005-10-23 Thread Peter Hansen
Stuart McGraw wrote: > I have a wxPython app, conventionally structured > with a Application class derived from wx.App. > My problem is that the app accepts a command > line argument that must be acted upon within the > OnInit() method of the Application class. How do > I pass it cleanly from main

wxpython - passing arg to wx.app OnInit

2005-10-22 Thread Stuart McGraw
I have a wxPython app, conventionally structured with a Application class derived from wx.App. My problem is that the app accepts a command line argument that must be acted upon within the OnInit() method of the Application class. How do I pass it cleanly from main() into app.OnInit()? In the si