On 28 October 2010 20:24, Alex <sigma.z.1...@gmail.com> wrote:

> 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)
> what am I doing wrong?
>

Try

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

Chances are, the grid() method modifies the object in-place without
returning a self reference. This is a common getcha.

Cheers,
Xav
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to