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@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to