コード例 #1
0
ファイル: CalendarStock.py プロジェクト: nihed/magnetism
    def __init__(self, *args, **kwargs):
        self.__box = hippo.CanvasBox(orientation=hippo.ORIENTATION_VERTICAL, spacing=3)
        self.__events = {}

        self.__auth_ui = google.AuthCanvasItem()
        self.__box.append(self.__auth_ui)
        google.get_google().add_auth_ui(self.__auth_ui)

        # these are at the end since they have the side effect of calling on_mugshot_ready it seems?
        AbstractMugshotStock.__init__(self, *args, **kwargs)
        polling.Task.__init__(self, 1000 * 120)

        self._add_more_link(self.__on_more_link)
コード例 #2
0
ファイル: CalendarStock.py プロジェクト: nihed/magnetism
 def __update_events(self):
     logging.debug("retrieving events")
     google.get_google().fetch_calendar(self.__on_load_events, self.__on_failed_load)