Simple question from a wxPython newbie: how do you get access to the script
command line arguments from the wxApp object?
The wxWindows API doc says:
start quote<<
wxApp::argc
int argc
Number of command line arguments (after environment-specific processing).
wxApp::argv
char ** argv
Command line arguments (after environment-specific processing).
end quote
But I can't seem to be able to access them from Python.
Thanks .
Pierre
Pierre_Rouleau@ImpathNetworks.com kirjutas E, 26.05.2003 kell 23:53:
Simple question from a wxPython newbie: how do you get access to the script
command line arguments from the wxApp object?
The wxWindows API doc says:
start quote<<
wxApp::argc
int argc
Number of command line arguments (after environment-specific processing).
wxApp::argv
char ** argv
Command line arguments (after environment-specific processing).
>> end quote
But I can't seem to be able to access them from Python.
if you are running a python script (i.e. not embedded wxPython) then you
should access the commandline arguments the python way :
import sys
sys.argv
ยทยทยท
-----------
Hannu