problems using Tkinter
Daniel Faulkner
m01ymu00 at cwcom.net
Fri Jun 4 11:42:54 EDT 1999
Have you tried making you programme like this:
class tester(Frame):
def Create_Widgets(self):
self.QuitB = Button(butFrame, text='Quit', fg='red',
command=self.quit)
self.QuitB.pack(side='left')
def __init__(self, master=None):
Frame.__init__(self, master)
self.pack()
self.Create_Widgets()
test = tester()
test.mainloop()
I know it is not much help but if this works it is better than not being
able to do anything.
Dan
Gordon Vinther wrote:
> I get the following error whenever I attempt to use Tk
>
> Os AIX4.2.1
> Python 1.5.2
> Tk/TCL 8.0.1
>
> from Tkinter import * .............this works
> root=Tk() ........... this errors with the following message
>
> File "/usr/local/lib/python1.5/lib-tk/Tkinter.py", line 886, in __init__
> self.tk = _tkinter.create(screenName, baseName, className)
>
> TclError: invalid command name "tcl_findLibrary"
More information about the Python-list
mailing list