Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Embedded Python and Tkinter / win32gui

Reply
Thread Tools

Embedded Python and Tkinter / win32gui

 
 
=?ISO-8859-1?Q?Thomas_N=FCcker?=
Guest
Posts: n/a
 
      06-24-2003
Hello!

I am using the python dll within a visual-c++ project. In the project
i am also handling python scripts. Since i want to use some
message-boxes i want to have the opportunity to import modules in the
script.

Now there is the question:
How do i have to configure / compile the python-dll so i can use the
tkinter-module or the win32gui module? Is this only a problem of where
the modules are storred, or has the compilation of the python-dll
specially to be configured?

Thank you for your answer,

Thomas Nücker
 
Reply With Quote
 
 
 
 
Fredrik Lundh
Guest
Posts: n/a
 
      06-24-2003
Thomas Nücker wrote:

> I am using the python dll within a visual-c++ project. In the project
> i am also handling python scripts. Since i want to use some
> message-boxes i want to have the opportunity to import modules in the
> script.
>
> Now there is the question:
> How do i have to configure / compile the python-dll so i can use the
> tkinter-module or the win32gui module? Is this only a problem of where
> the modules are storred


just make sure that Python can find them, for example by calling
Py_SetPythonHome with the installation "root" directory (put the
files in <root>/Lib and <root>/DLLs etc, just like the standard
Python install does).

alternatively, you can manipulate the PYTHONHOME or PYTHONPATH
environment variables before initializing the Python interpreter.

(if you need more alternatives, check the Python source code)

> or has the compilation of the python-dll specially to be
> configured?


hopefully not.

</F>




 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?Thomas_N=FCcker?=
Guest
Posts: n/a
 
      06-25-2003
I configured the paths, so Python can find them, but i further on get
the following error in my program:

File "c:\Python22\lib\lib-tk\Tkinter.py", line 25 in ?
import _tkinter # if this fails your Python may not be configured
for Tk

Where could be the error and how can I configure Python for Tk?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using win32gui.SendMessage and SysListView32 control geskerrett@hotmail.com Python 3 12-04-2006 05:05 PM
[ann] WIN32GUI v1.6.3 released jtorjo@yahoo.com C++ 1 01-26-2005 06:43 AM
[ann] WIN32GUI - v1.5.1 released John Torjo C++ 32 10-29-2004 02:07 AM
What's the difference between win32ui and win32gui? Corwan Python 1 02-01-2004 03:56 AM
Re: Compiling Python with Tkinter and win32gui Martin v. =?iso-8859-15?q?L=F6wis?= Python 0 06-27-2003 08:51 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57