Strange Tkinter trouble 
Author Message
 Strange Tkinter trouble

Hi,

I'm having strange troubles with our new file server's Tkinter installation
and was hoping that anyone that anyone can help me.

I've recompiled python myself, and have done so several times before -- and
I'm not sure what I've done wrong.

Here is the error message I'm getting:

[snip]
Python 1.5.2 (#2, Jun 20 2000, 10:54:20)  [GCC 2.95.2 19991024 (release)] on
linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam

Quote:
>>> from Tkinter import *
>>> Tk()

'None','','Tk' # These are the values of {screen,base,class}Name below
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/org/opt/python/lib/python1.5/lib-tk/Tkinter.py", line 887, in
__init__
    self.tk = _tkinter.create(screenName, baseName, className)
TclError: couldn't stat "": no such file or directory
[snip]

My system is SuSE Linux 6.4 (glib-2.1 based), with Tcl/Tk 8.0.4 (also
self-compiled).

Has anyone seen this before?

Thanks in advance,
                --Bj?rn



Sat, 07 Dec 2002 03:00:00 GMT  
 Strange Tkinter trouble
I'm not sure if this is the problem, but you need a variable to point
to that root window if you are going to do anything with it.
For example:

from Tkinter import *
root=Tk()
w = Label(root, text="Hello, world!")
w.pack()
root.mainloop()

(this from An Introduction to Tkinter by Lundh)

Quote:

> Here is the error message I'm getting:

> [snip]
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> from Tkinter import *
> >>> Tk()
> 'None','','Tk' # These are the values of {screen,base,class}Name below
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
>   File "/org/opt/python/lib/python1.5/lib-tk/Tkinter.py", line 887, in
> __init__
>     self.tk = _tkinter.create(screenName, baseName, className)
> TclError: couldn't stat "": no such file or directory

> [snip]

Sent via Deja.com http://www.deja.com/
Before you buy.


Sat, 07 Dec 2002 03:00:00 GMT  
 Strange Tkinter trouble
Hi,
: I'm not sure if this is the problem,

No. :-(

: from Tkinter import *
: root=Tk()

This is the line that doesn't work. It breaks in the call to Tk().

Regards,
                --Bj?rn



Sun, 08 Dec 2002 03:00:00 GMT  
 Strange Tkinter trouble
Are you using IDLE, or a regular python prompt?

-Greg H.

Sent via Deja.com http://www.deja.com/
Before you buy.



Sun, 08 Dec 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. strange Tkinter problem

2. Strange Tkinter behaviour

3. Tkinter: Strange Pmw behaviour

4. Strange Tkinter exception

5. Strange Tkinter error

6. Tkinter and grid: strange alignment with and without sticky option

7. Tkinter + threads = trouble?

8. Tkinter on NT (troubles with executing)

9. Solution to IDLE and Tkinter troubles

10. trouble with Tkinter installation

11. trouble with tkinter

12. Trouble with Tkinter under IDLE

 

 
Powered by phpBB® Forum Software