Tkinter

V

vijayca

i tried to use python gui module Tkinter in solaris,aix,hpux.....
while importing the module it shows an error...

import Tkinter
error says that your python may not be configured for Tk()...
how to get out of this...
 
W

Wildemar Wildenburger

vijayca said:
i tried to use python gui module Tkinter in solaris,aix,hpux.....
while importing the module it shows an error...

import Tkinter
error says that your python may not be configured for Tk()...
how to get out of this...
Please copy and paste the invocation and (most importantly) the exact
error you get. This will make it easier for everyone to help you.

/W
 
E

Eric Brunel

i tried to use python gui module Tkinter in solaris,aix,hpux.....
while importing the module it shows an error...

import Tkinter
error says that your python may not be configured for Tk()...
how to get out of this...

Did you compile the Python interpreter yourself, or did it come in a sort
of package?

In the first case, you have to install tcl/tk yourself if it's not already
there, then tweak the build options for Python to make it use the tcl/tk
installation you've done. How to tweak these options depends on the Python
version you use, so please tell us what it is.

In the second case, Tkinter may be provided as a separate package, that
you also need to install.

And BTW, Wildemar's comment still holds: please copy/paste the exact
traceback you get if it doesn't work. I'm only guessing here...

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top