Ejemplo n.º 1
0
        def done(*args,**kwds):
            agentd.delete_user_slot(slot)
            os.rename(filenamesave,filename)

            if make_default:
                agentd.set_default_setup(filename)

            self.setups_changed(filename)

            self.savcond.acquire()
            try:
                self.saving = False
                self.savcond.notify()
            finally:
                self.savcond.release()

            print 'save complete',filename
            self.info_dialog('Setup Saved','Setup Saved',"The user setup '"+slot+"' was successfully saved")
Ejemplo n.º 2
0
 def delete_setup(self,slot):
     agentd.delete_user_slot(slot)
     self.setups_changed()