Issue699068
Created on 2003-03-06 23:15 by johnnoone, last changed 2005-03-21 18:35 by facundobatista. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg15001 - (view) | Author: John (johnnoone) | Date: 2003-03-06 23:15 | |
Using Python 2.2.2 on MS Windows 2000 platform. Calling embedded Python from Visual C++ works fine until I add a call to Tkinter (version 8.3). Follow the example in section 5.3 at the following link: http://www.python.org/doc/ext/extending-with- embedding.html Link call.cpp as is and add a line to multiply.py to create a Tkinter frame: "fr = Tkinter.Tk()" // added import for Tkinter too! Yields the following error messages: C:\Python22\c\vcpp\hello3>hello3 call multiply 2 3 Thy shall add 2 times 3 Traceback (most recent call last): File "C:\Python22\c\vcpp\hello3\call.py", line 7, in multiply fr = Tk() File "C:\Python22\lib\lib-tk\Tkinter.py", line 1491, in __init__ baseName = os.path.basename(sys.argv[0]) AttributeError: 'module' object has no attribute 'argv' Call failed Is there a problem using Tkinter from C++? Python/Tk work fine standalone. |
|||
| msg15002 - (view) | Author: Martin v. Löwis (loewis) * ![]() |
Date: 2003-03-15 13:38 | |
Logged In: YES user_id=21627 Please look at the source of sysmodule.c. sys.argv is only present if PySys_SetArgv is invoked. |
|||
| msg15003 - (view) | Author: Facundo Batista (facundobatista) * ![]() |
Date: 2004-11-12 02:18 | |
Logged In: YES user_id=752496 Please, could you verify if this problem persists in Python 2.3.4 or 2.4? If yes, in which version? Can you provide a test case? If the problem is solved, from which version? Note that if you fail to answer in one month, I'll close this bug as "Won't fix". Thank you! . Facundo |
|||
| msg15004 - (view) | Author: Facundo Batista (facundobatista) * ![]() |
Date: 2005-03-21 18:35 | |
Logged In: YES user_id=752496 Deprecated. Reopen only if still happens in 2.3 or newer. . Facundo |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2003-03-06 23:15:08 | johnnoone | create | |
