Closed bahronheim closed 1 year ago
Sorry if this is a minor issue, but being a novice, it caused me a bit of head scratching until I figured it out...
In the "typical usage" section, the code reads: rb = RadioButtons(callback, BLUE) # color of selected button
The constructor for the RadioButtons is: def init(self, highlight, callback=dolittle, selected=0):
So it expects the highlight color first.
So unless I'm mistaken, the parameter positions should be swapped: rb = RadioButtons(BLUE, callback) # color of selected button
Thank you. Now fixed.
Sorry if this is a minor issue, but being a novice, it caused me a bit of head scratching until I figured it out...
In the "typical usage" section, the code reads: rb = RadioButtons(callback, BLUE) # color of selected button
The constructor for the RadioButtons is: def init(self, highlight, callback=dolittle, selected=0):
So it expects the highlight color first.
So unless I'm mistaken, the parameter positions should be swapped: rb = RadioButtons(BLUE, callback) # color of selected button