def get_value(self):
    if (self.value.get() == 1):
        return self.flag
    else:
        return None
def get_value(self):
    if (self.value.get() == 1):
        return self.flag
    else:
        return None