Esempio n. 1
0
    def stop_stopwatch(self):
        Clock.unschedule(self.timer_proc)
        self.unbind(time=self.update_stopwatch)

        self.remove_widget(self.screen_layout)
        self.screen_layout = Factory.AddTBasedLayout2()
        self.add_widget(self.screen_layout)

        self.screen_layout._tl_text = self.action
        self.screen_layout._stopwatch_result = 'Time passed:' + \
            str(self.time) + 's'