def resetAll(self): ''' Resets the pushbutton 'morph' to enabled state and reinitializes the shapes as_man and non_man ''' global as_man, non_man self.reset() as_man = Shape() non_man = Shape() as_man.set_visibility(self.as_man_cb.isChecked()) non_man.set_visibility(self.non_man_cb.isChecked()) self.update()
def resetAll(self): ''' Resets the pushbutton 'morph' to enabled state and reinitializes the shapes msum and mdiff ''' global msum, mdiff self.reset() msum = Shape() mdiff = Shape() msum.set_visibility(self.msum_cb.isChecked()) mdiff.set_visibility(self.mdiff_cb.isChecked()) self.update()