[Tutor] Traffic Light
anthonym
anthonym at att.net
Sat Jan 19 23:56:13 CET 2013
Thanks again for the info Alan. I am still passing the button process
until I can get my rectangle and ovals on the canvass. The program runs
and produces a window with the radio buttons on top. I would like them on
the bottom but changes to the row field have no effect.
Anybody have any ideas on why I don't see my shape on the canvass?
Thanks,
Tony
On 1/19/13 1:02 PM, "Alan Gauld" <alan.gauld at btinternet.com> wrote:
>On 19/01/13 20:31, anthonym wrote:
>
>> rbRed = Radiobutton(frame1, text = "Red", bg = "red",
>> variable = self.v2,
>> value = 1,
>> command = self.processRadiobutton)
>
>Here you assign your method to the button
>
>> # Add Radio Button process below once I figure that out
>
>But you haven't defined it, it does not exist.
>So python complains.
>
>You need to define something, even just a pass:
>
>
> def processRadioButton(self): pass
>
>
>> 16, in __init__
>> command = self.processRadiobutton)
>> AttributeError: 'Trafficlight' object has no attribute
>>'processRadiobutton'
>
>
>HTH
>
>--
>Alan G
>Author of the Learn to Program web site
>http://www.alan-g.me.uk/
>
>_______________________________________________
>Tutor maillist - Tutor at python.org
>To unsubscribe or change subscription options:
>http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list