'NoneType' object has no attribute 'bind'

Alex sigma.z.1980 at gmail.com
Thu Oct 28 06:24:44 EDT 2010


hi there, I keep getting the message in the Topic field above.

Here's my code:

self.click2=Button(root,text="Click Me").grid(column=4,row=10)
self.click2.bind("<Button-1>",self.pop2pop)

def pop2pop(self,event):

        print("Adsfadsf")
        newpop=IntVar()
        newpop=self.PopSize.get();


what am I doing wrong?

cheers,

Alex



More information about the Python-list mailing list