def handler(self, *args, **kwargs): ''' Handle value_changed signals ''' gsettings.set(schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.ui.get_active()) logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self, *args, **kwargs): ''' handle toggle signals ''' gsettings.set(schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.ui.get_font_name()) logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self, *args, **kwargs): ''' handle treeselection changed signals ''' store, iter = self.ui.get_selected() gsettings.set(schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.invmap[self.ui.get_active()]) logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self,*args,**kwargs): ''' Handle notify::active signals ''' gsettings.set( schema = self.schema, path = self.path, key = self.key, type = self.type, value = self.ui.get_value() ) logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self,*args,**kwargs): ''' handle toggle signals ''' gsettings.set( schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.get_color() ) logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self, *args, **kwargs): ''' handle toggle signals ''' if self.disabled: return gsettings.set(schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.get_color()) logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self,*args,**kwargs): ''' handle treeselection changed signals ''' store,iter=self.ui.get_selected() gsettings.set( schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.invmap[self.ui.get_active()] ) logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self, *args, **kwargs): ''' Handle toggled signals ''' self.active = self.ui.get_active() if self.active: gsettings.set(schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.value) self.handledependants() logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self,*args,**kwargs): ''' handle toggle signals ''' self.active=self.ui.get_active() gsettings.set( schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.invmap[self.active] ) self.handledependants() logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self, *args, **kwargs): ''' handle toggle signals ''' if self.disabled: return self.active = self.ui.get_active() gsettings.set(schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.invmap[self.active]) self.handledependants() logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self,*args,**kwargs): ''' handle toggle signals ''' if self.disabled: return gsettings.set( schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.invmap[self.ui.get_active()] ) logger.info('Handler for {self.id} executed'.format(self=self))
def handler(self,*args,**kwargs): ''' Handle value_changed signals ''' if self.disabled: return gsettings.set( schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.ui.get_value() ) logger.info('Handler for {self.id} executed'.format(self=self))
def on_sw_transparent_panel_active_notify(*args, **kwargs): if sw_transparent_panel_dummy.disabled: return active = sw_transparent_panel_dummy.ui.get_active() if active: val = Unity.builder.get_object('sc_panel_transparency').get_value() else: val = 1 gsettings.set(schema=sw_transparent_panel_dummy.schema, path=sw_transparent_panel_dummy.path, key=sw_transparent_panel_dummy.key, type=sw_transparent_panel_dummy.type, value=val) for element in sw_transparent_panel_dummy.dependants: Unity.builder.get_object(element).set_sensitive(active)
def handler(self,*args,**kwargs): ''' Handle toggled signals ''' if self.disabled: return self.active=self.ui.get_active() if self.active: gsettings.set( schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.value ) self.handledependants() logger.info('Handler for {self.id} executed'.format(self=self))
def on_sw_transparent_panel_active_notify(*args,**kwargs): if sw_transparent_panel_dummy.disabled: return active =sw_transparent_panel_dummy.ui.get_active() if active: val =Unity.builder.get_object('sc_panel_transparency').get_value() else: val = 1 gsettings.set( schema=sw_transparent_panel_dummy.schema, path=sw_transparent_panel_dummy.path, key=sw_transparent_panel_dummy.key, type=sw_transparent_panel_dummy.type, value= val ) for element in sw_transparent_panel_dummy.dependants: Unity.builder.get_object(element).set_sensitive(active)
def handler(self, *args, **kwargs): """ handle toggle signals """ gsettings.set(schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.ui.get_font_name()) logger.info("Handler for {self.id} executed".format(self=self))
def handler(self, *args, **kwargs): """ handle toggle signals """ if self.disabled: return gsettings.set(schema=self.schema, path=self.path, key=self.key, type=self.type, value=self.get_color()) logger.info("Handler for {self.id} executed".format(self=self))