Exemple #1
0
 def on_rename(self, model, user_data):
     self.emit('action', 'rename')
     d = SCRenameCueListDialog(self.__main_window, self.__main_window.get_current_cue_stack().name)
     result = d.run()
     if result == Gtk.ResponseType.OK:
         self.__main_window.get_current_cue_stack().rename(d.get_name())
     d.destroy()
Exemple #2
0
 def on_cue_list(self, model, user_data):
     self.emit('action', 'list')
     cl = CueStack(name="Untitled Cue List", project=self.__main_window.project)
     d = SCRenameCueListDialog(self.__main_window, cl.name)
     result = d.run()
     if result == Gtk.ResponseType.OK:
         cl.rename(d.get_name())
         logger.debug("Adding CueList {0}".format(cl.name))
         self.__main_window.project.add_cuelist(cl)
     d.destroy()