Calling wxprograms from a menu

Chuck Esterbrook writes:

> def run():
> app = MyApp(0) # Create an instance of the application class
> app.MainLoop() # Tell it to start processing events

What does the 0 do? I don't see any args in the wxApp docs to the C++
constructor...

Ooo! Ooo! I actually know the answer to this one... :slight_smile:

Passing 0 to the wxApp constructor tells it to "display stdout/stderr
in the associated console window(if any);" passing a 1 tells it to
create its own window for any stdout/stderr to be displayed in.

(This question has been asked and answered over and over again in the
past few years. I can only think that the reason this question gets
asked so often is that it doesn't appear in the wxWindows documentation
for the wxApp constructor; as written it doesn't appear to take arguments.
Robin, could this be fixed?)

/Will Sadkin
Parlance Corporation
www.nameconnector.com

···

On Monday 05 May 2003 04:29 am, Frank Millman wrote: