On 09/09/2012 04:56 PM, leam hall wrote:
> self.blue = Button(root, text="Blue",
> command=self.change_text_color("blue"))
> self.blue.pack(side=LEFT)
> self.green = Button(root, text="Green",
> command=self.change_text_color("green"))
> self.green.pack(side=LEFT)
>
> To follow up,
self.blue = Button(root, text="Blue",
command=self.change_text_color("blue"))
self.blue.pack(side=LEFT)
self.green = Button(root, text="Green",
command=self.change_text_color("green"))
self.green.pack(side=LEFT)
To follow up, I've added a second button. Of course, it doesn't work,
On Sun, Sep 9, 2012 at 12:12 PM, Peter Otten <__pete...@web.de> wrote:
> the above will no longer complain about a missing attribute.
>
> > root = Tk()
> > project = ch8_Project(master=root)
> > project.mainloop()
>
>
> Another problem that caught my attention:
>
> > self.green = Button(root,
leam hall wrote:
> I'm in the O'Reilly Python 2 class, so pointers to learning would be
> better than just answers, please. My brain is a bit slow but needs to go
> forward.
>
> Line 16 calls line 31. Rather, it is supposed to. I'm trying to figure out
> why I get
>
> File "./ch8_project.py",
On Sun, Sep 9, 2012 at 5:43 PM, leam hall wrote:
> Of course, showing the code might help...
>
> http://bpaste.net/show/44593/
>
> Thanks!
>
> Leam
>
>
> On Sun, Sep 9, 2012 at 10:42 AM, leam hall wrote:
>>
>> I'm in the O'Reilly Python 2 class, so pointers to learning would be
>> better than ju
Of course, showing the code might help...
http://bpaste.net/show/44593/
Thanks!
Leam
On Sun, Sep 9, 2012 at 10:42 AM, leam hall wrote:
> I'm in the O'Reilly Python 2 class, so pointers to learning would be
> better than just answers, please. My brain is a bit slow but needs to go
> forward.
I'm in the O'Reilly Python 2 class, so pointers to learning would be better
than just answers, please. My brain is a bit slow but needs to go forward.
Line 16 calls line 31. Rather, it is supposed to. I'm trying to figure out
why I get
File "./ch8_project.py", line 31, in change_text_color