def onClicked(self, gWin, gevent): if ui.winMaximized: gWin.unmaximize() else: gWin.maximize() ui.winMaximized = not ui.winMaximized ui.saveLiveConf()
def quit(self, widget=None, event=None): try: ui.saveLiveConf() except: myRaise() if self.trayMode>1 and self.sicon: self.sicon.set_visible(False) ## needed for windows ## before or after main_quit ? return gtk.main_quit()
def stickyClicked(self, check): if check.get_active(): self.stick() ui.winSticky = True else: self.unstick() ui.winSticky = False ui.saveLiveConf()
def _do_showDescItemToggled(self): active = self.showDescItem.get_active() #self.showDescItem.set_active(active) ui.eventManShowDescription = active ui.saveLiveConf()## FIXME if active: self.treev.append_column(self.colDesc) else: self.treev.remove_column(self.colDesc)
def quit(self, widget=None, event=None): try: ui.saveLiveConf() except: myRaise() if self.statusIconMode>1 and self.sicon: self.sicon.set_visible(False) ## needed for windows ## before or after main_quit ? ###### core.stopRunningThreads() ###### return gtk.main_quit()
def quit(self, widget=None, event=None): try: ui.saveLiveConf() except: myRaise() if self.statusIconMode > 1 and self.sicon: self.sicon.set_visible( False) ## needed for windows ## before or after main_quit ? ###### core.stopRunningThreads() ###### return gtk.main_quit()
def prefUpdateBgColor(self, cal): ui.prefDialog.colorbBg.set_color(ui.bgColor) ui.saveLiveConf()
def expanderExpanded(self, exp): ui.pluginsTextIsExpanded = not exp.get_expanded() ui.saveLiveConf()
def onClicked(self, *a): ui.wcal_toolbar_weekNum_negative = not ui.wcal_toolbar_weekNum_negative self.updateLabel() ui.saveLiveConf()
def prefUpdateBgColor(self, cal): if ui.prefDialog: ui.prefDialog.colorbBg.set_color(ui.bgColor) #else:## FIXME ui.saveLiveConf()
def onResponse(self, dialog, response_id): ui.eventManPos = self.get_position() ui.saveLiveConf() ### self.hide() self.emit('config-change')
def keepAboveClicked(self, check): act = check.get_active() self.set_keep_above(act) ui.winKeepAbove = act ui.saveLiveConf()