def build(self, app_name): resource = SyncGController() self.indicator = appindicator.Indicator.new(app_name, resource.image_path(text.IMAGE_ON), appindicator.IndicatorCategory.APPLICATION_STATUS) self.indicator.set_status(appindicator.IndicatorStatus.ACTIVE) self.indicator.set_menu(self.__menu())
def __init__(self, app_name): self.name = app_name command = SyncGController() try: command.auth(app_name) except Exception as e: print 'Error' view = SyncGView() view.build(app_name)