Which of the following methods is not part of the Button class? a) activate b) deactivate c) setLabel d) clicked
Step 11 of 2
Looking at the module, we see that besides the constructor, there are 4 methods:
clicked getLabel activate deactivate
Notice that though there is an accessor method , there is no mutator variable for the instance variable. I.e. there's no method.
Recommended textbook solutions
Write a modified Button class that creates circular buttons. Call your class CButton and implement the exact same methods that are in the existing Button class. Your constructor should take the center of the button and its radius as normal parameters. Place your class in a module called cbutton.py. Test your class by modifying roller.py to use your buttons.