def __init__(self): self.pomodoro = pomodoro_state.PomodoroMachine() self.notificator = PomodoroOSDNotificator() self.icon_directory = configuration.icon_directory() self.ind = appindicator.Indicator( "pomodoro-indicator", self.idle_icon(), appindicator.CATEGORY_APPLICATION_STATUS) self.ind.set_status(appindicator.STATUS_ACTIVE) self.ind.set_attention_icon(self.active_icon()) #self.ind.set_label("25:00") self.menu_setup() self.ind.set_menu(self.menu) self.timer_id = None
def __init__(self): self.pomodoro = pomodoro_state.PomodoroMachine() self.notificator = PomodoroOSDNotificator() self.icon_directory = configuration.icon_directory() self.ind = appindicator.Indicator("pomodoro-indicator", self.idle_icon(), appindicator.CATEGORY_APPLICATION_STATUS) self.ind.set_status(appindicator.STATUS_ACTIVE) self.ind.set_attention_icon("new-messages-red") #self.ind.set_label("25:00") self.menu_setup() self.ind.set_menu(self.menu) self.timer_id = None
def __init__(self): self.icon_directory = configuration.icon_directory()