Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
 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)
Пример #6
0
 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)
Пример #7
0
 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()
Пример #8
0
 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()
Пример #9
0
 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()
Пример #10
0
 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()