def delete_partition(self, widget): self.set_buttons_insensitives() w_elim = particion_eliminar.Main(self.lista, self.fila_selec, self.acciones) self.lista = w_elim.lista self.acciones = w_elim.acciones self.fill_table() print "---ACCIONES---" print debug_list(self.acciones) print "--------------"
def edit_partition(self, widget): self.set_buttons_insensitives() widget.set_sensitive(False) w_usar = particion_editar.Main(self.lista, self.fila_selec, self.acciones) self.lista = w_usar.lista self.acciones = w_usar.acciones self.fill_table() print "---ACCIONES---" print debug_list(self.acciones) print "--------------"
def resize_partition(self, widget): self.set_buttons_insensitives() widget.set_sensitive(False) w_redim = particion_redimensionar.Main(self.disco, self.lista, self.fila_selec, self.acciones) self.acciones = w_redim.acciones self.lista = w_redim.lista self.fill_table() print "---ACCIONES---" print debug_list(self.acciones) print "--------------"
def new_partition(self, widget): self.set_buttons_insensitives() widget.set_sensitive(False) w_nueva = particion_nueva.Main(self) # Se actualiza la tabla self.lista = w_nueva.lista self.acciones = w_nueva.acciones self.acciones self.fill_table() print "---ACCIONES---" print debug_list(self.acciones) print "--------------"
def siguiente(self, CFG): CFG['metodo'] = CFG['w'].formulario('Metodo').metodo CFG['particiones'] = CFG['w'].formulario('Metodo').particiones print 'El metodo de instalaciĆ³n escogido es: {0}'.format(CFG['metodo']['tipo']) print 'CFG: {0}'.format(debug_list(CFG)) if CFG['metodo']['tipo'] == 'MANUAL': CFG['w'].next('PartManual', PartManual, (CFG), PasoPartManual(CFG)) elif CFG['metodo']['tipo'] == 'TODO' or CFG['metodo']['tipo'] == 'LIBRE': CFG['w'].next('PartTodo', PartTodo, (CFG), PasoPartTodo(CFG)) elif CFG['metodo']['tipo'] == 'REDIM': CFG['w'].next('PartAuto', PartAuto, (CFG), PasoPartAuto(CFG)) else: pass
def undo_all_actions(self, widget=None): self.initialize(self.data) print "---ACCIONES---" print debug_list(self.acciones) print "--------------"