Tkinter Crash under PythonWin

Neil Hodgson nhodgson at bigpond.net.au
Mon Nov 12 23:08:51 CET 2001


Wolfgang Strobl:

> >>> Traceback (most recent call last):
>   File "H:\Python21\Pythonwin\pywin\framework\intpyapp.py", line 349,
> in OnFileRun
>     dirOfScript, starter)
> TypeError: CreateProcess() takes exactly 9 arguments (7 given)

   But there are 9 arguments (as there are 8 commas):

   win32process.CreateProcess(sys.exec_prefix + "\\python.exe",
            "python -i " + pathToRun, None, None, 0,
            win32process.CREATE_NEW_CONSOLE, None,
            dirOfScript, starter)

   Maybe there was some line-end failure in transit - try adding \ at the
end of the lines to force it all on one logical line.

   Neil





More information about the Python-list mailing list