Exemplo n.º 1
0
 def edit(self):
   import init_editobj
   
   def on_ok():
     self.MIDI_USE_TEMP_FILE = self.MIDI_COMMAND.find("%s") != -1
     cancel.NUMBER_OF_CANCEL = self.NUMBER_OF_CANCEL + 1
     self.save()
     
   init_editobj.edit(self, command = on_ok, preamble = _("__config_preamble__"))
Exemplo n.º 2
0
 def on_prop(self):
   "Displays a dialog box to edit this view's specific properties (If there are some). Called when the 'view properties' button is clicked in the partition properties dialog."
   import init_editobj
   init_editobj.edit(self.partition, cancel = self.canvas.app.cancel)