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