[Tutor] Entry in Tkinter
Diego Prestes
lobow@brturbo.com
Wed Mar 26 12:43:02 2003
Hello,
Im trying tu use the Entry widget. I type a word in the Entry and in
find1 module it use the entry using the option self.proc.get(), but when
I use this, I have this error:
AttributeError: 'NoneType' object has no attribute 'get'
In a test I try to use the Entry and it works normally, but in my
program not.
Someone know what I could be doing wrong?
self.find1 = Button(frame3, text="Find", command=self.find1).pack(side=LEFT)
self.proc = Entry(frame3, background="white").pack(side=LEFT)
def find1(self): #count the number of times that the word in the text
vpal = count(self.text,self.proc.get())
tkMessageBox.showinfo("Find","%s and %d" % (self.proc.get(),vpal))
Diego
PS: If someone dont understand my english ask me and I'll try to explain
better.