2012-01-11 20:55:25 +00:00
|
|
|
from cocoa.inter2 import PyGUIObject
|
2011-09-21 20:02:13 +00:00
|
|
|
|
|
|
|
class PyExtraFairwareReminder(PyGUIObject):
|
|
|
|
def start(self):
|
2012-01-11 20:55:25 +00:00
|
|
|
self.model.start()
|
2011-09-21 20:02:13 +00:00
|
|
|
|
|
|
|
def updateButton(self):
|
2012-01-11 20:55:25 +00:00
|
|
|
self.model.update_button()
|
2011-09-21 20:02:13 +00:00
|
|
|
|
|
|
|
# model --> view
|
|
|
|
def start_timer(self):
|
2012-01-11 20:55:25 +00:00
|
|
|
self.callback.startTimer()
|
2011-09-21 20:02:13 +00:00
|
|
|
|
|
|
|
def stop_timer(self):
|
2012-01-11 20:55:25 +00:00
|
|
|
self.callback.stopTimer()
|
2011-09-21 20:02:13 +00:00
|
|
|
|
|
|
|
def enable_button(self):
|
2012-01-11 20:55:25 +00:00
|
|
|
self.callback.enableButton()
|
2011-09-21 20:02:13 +00:00
|
|
|
|
|
|
|
def set_button_text(self, text):
|
2012-01-11 20:55:25 +00:00
|
|
|
self.callback.setButtonText_(text)
|