Re: [Tutor] Help with class in class

2012-09-09 Thread Dave Angel
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,

Re: [Tutor] Help with class in class

2012-09-09 Thread leam hall
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,

Re: [Tutor] Help with class in class

2012-09-09 Thread leam hall
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,

Re: [Tutor] Help with class in class

2012-09-09 Thread Peter Otten
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",

Re: [Tutor] Help with class in class

2012-09-09 Thread Kwpolska
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

Re: [Tutor] Help with class in class

2012-09-09 Thread leam hall
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.

[Tutor] Help with class in class

2012-09-09 Thread leam hall
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