Closed riverajo closed 10 years ago
Each class should call it's Super() in it's __init__. While not harmful, it's good form. Also you could then put an __init__ in the component class that then calls the setmode() function instead of each calling them serperatly.
Super()
__init__
component
setmode()
i added a call to the super([class], self).__init__(mode)
super([class], self).__init__(mode)
Each class should call it's
Super()
in it's__init__
. While not harmful, it's good form. Also you could then put an__init__
in thecomponent
class that then calls thesetmode()
function instead of each calling them serperatly.