Hi.
Once i have compiled my app with pyexe everyting works fine if i launch the application directly from the .exe, But when i launch a
file associated to my application it opens with the wxPython stout/sterr opened (like the wxLogGui), even if I declared wxLogNull
inside my App.
It is strange that this issue happens only if I launch the application by opening an associated file, not when it is opened
launching the .exe
Hi.
Once i have compiled my app with pyexe everyting works fine if i launch the application directly from the .exe, But when i launch a
file associated to my application it opens with the wxPython stout/sterr opened (like the wxLogGui), even if I declared wxLogNull
inside my App.
It is strange that this issue happens only if I launch the application by opening an associated file, not when it is opened
launching the .exe
What can be the problem?
What is displayed in the stdout/stderr window? Look at what different code paths are executed if there is a command-lin parameter given to your program. Does the same thing happen if you associate that file extension with "python yourapp.py" ? If you usepy2exe to make it a console program instead is there anything output in the console that will help?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
::What is displayed in the stdout/stderr window? Look at what
::different code paths are executed if there is a command-lin
::parameter given to your program. Does the same thing happen
::if you associate that file extension with "python yourapp.py"
::? If you usepy2exe to make it a console program instead is
::there anything output in the console that will help?
There are displayed the "print" command i make in the various .py files (for the my debug), but it is not the commonly dos console,
but a frame window.
::What is displayed in the stdout/stderr window? Look at what ::different code paths are executed if there is a command-lin ::parameter given to your program. Does the same thing happen ::if you associate that file extension with "python yourapp.py" ::? If you usepy2exe to make it a console program instead is ::there anything output in the console that will help?
There are displayed the "print" command i make in the various .py files (for the my debug), but it is not the commonly dos console,
but a frame window.
Okay, then the problem is that you are *not* getting the stdout/stderr window when the app is started directly, not the other way around. If you construct your wxApp object with parameters specifying that the stdio should be redirected (the default on Windows) then you should get that output window whenever there is something written to stdout or stderr. So again, check your code to see what is different when there is or isn't a command-line paramter. Also, check to see if the window is being opened, but is just hidden beneath another.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!