def check(self): if self.mainGroupMB.cget('text') == Acc.chooseMainGroup: MB.mainGroupNotChosen() return False if self.subGroupMB.cget('text') == Acc.chooseSubGroup: MB.subGroupNotChosen() return False if self.kindMB.cget('text') == Acc.chooseKind: MB.kindNotChosen() return False return True
def check(self): if super().check(): if not (self.mainGroupMB.cget('text') == Acc.chooseMainGroup): return True MB.mainGroupNotChosen() return False