After migrating from debian to ubuntu, tkinter "hello world" doesn't work

M

mortuno

Hi

My tkinter apps worked fine in debian linux (woody and sarge)
I moved to ubuntu 5.10

I follow the 'hello world' test as seen in
http://wiki.python.org/moin/TkInter


import _tkinter # with underscore, and lowercase 't'
import Tkinter # no underscore, uppercase 'T'
Tkinter._test() # note underscore in _test()

and at the third point I get:

File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1569, in __init__
self.tk = _tkinter.create(screenName, baseName, className,
interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: this isn't a Tk applicationi


Some posts relate this error to locales, but I didn't change them

locale.getlocale()
('es_ES', 'iso-8859-15')

any help will be appreciated

Miguel
 
M

Mandus

28 Nov 2005 11:02:57 -0800 skrev (e-mail address removed):
Hi

My tkinter apps worked fine in debian linux (woody and sarge)
I moved to ubuntu 5.10

I follow the 'hello world' test as seen in
http://wiki.python.org/moin/TkInter


import _tkinter # with underscore, and lowercase 't'
import Tkinter # no underscore, uppercase 'T'
Tkinter._test() # note underscore in _test()

works just fine on my ubunty 5.10. Make sure you have the python2.4-tk
package installed (sudo apt-get install python2.4-tk).
 
M

mortuno

Mandus ha escrito:
works just fine on my ubunty 5.10. Make sure you have the python2.4-tk
package installed (sudo apt-get install python2.4-tk).

yes, i got it.
It's a fresh instalation from a cd in a brand new laptop. I tried to
reinstall python2.4-tk and many other packeges :-(

There are two errors
_tkinter.TclError: this isn't a Tk application
invalid color name "#efebe7 "

It is a tk problem. amsn (also based on tk) displays the same error.
Somebody in a post said that
aptitude install xrgb
solved it, but it didn't work for me.

It seems to be a problem of X window.
In a debian box, it works fine. But if I export the display to the
ubuntu
one, get same error. (Other apps export fine)
And even running it in the debian box, with a vnc display in the
ubuntu,
same error! :-((
 
M

Mandus

30 Nov 2005 04:23:37 -0800 skrev (e-mail address removed):
Mandus ha escrito:


yes, i got it.
It's a fresh instalation from a cd in a brand new laptop. I tried to
reinstall python2.4-tk and many other packeges :-(

If you think it may help, I can drop you my complete
'dpkg --get-selections'. Just tell me where you want it.

mvh,
 
M

mortuno

yes, but everybody using ubuntu tells me it works fine for them.
The problem must be something very specific to my laptop and
x window.
I am using need "855resolution" , I'd like to know if it works for
somedy else with ubuntu and 855resolution.

thanks for your interest
 

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

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top