def update_sprites_list(self, args): sprites = state.get_sprites() if sprites != None: self.mw.clear_list(self.mw.sp_gtklist) for p in sprites: self.mw.add_item_to_list(self.mw.sp_gtklist, p.name, None) project.push_state(state)
def update_images_list(self, args): images = state.get_images() if images != None: self.mw.clear_list(self.mw.gtklist) for p in images: self.mw.add_item_to_list(self.mw.gtklist, p.name, None) project.push_state(state)
def update_layers_list(self, args): layers = state.get_layers() if layers != None: self.mw.clear_list(self.mw.l_gtklist) for l in layers: self.mw.add_item_to_list(self.mw.l_gtklist, l.name, None) project.push_state(state)
def update_settings(self, args): if hasattr(args[0][1][0], "get_value"): new_value = args[0][1][0].get_value() else: new_value = args[0][1][0].get_active() setting = args[0][0] setting.set_value(new_value) project.push_state(state) self.mw.widget.update()
def update_settings(self, args): new_value = args[0][1][0].get_value() setting = args[0][0] setting.set_value(new_value) project.push_state(state) self.mw.widget.update()