def METHOD_NAME(self, widget):
    if self.pomodoro["state"] == "ON" or self.pomodoro["state"] == "PAUSED":
        self.pomodoro = {"state": "OFF", "type": ""}
        self.remaining_time = datetime.timedelta(minutes=self.__work_period)