def on_btnBajahab_clicked(self, widget): try: numhab = variables.filahab[0].get_text() if numhab != '': funcioneshab.bajahab(numhab) funcioneshab.limpiarentry(variables.filahab) funcioneshab.listadohab(variables.listhab) else: pass except: print('borrar baja hab')
def on_btnBajaHab_clicked(self, widget): try: model, iter = variables.treehab.get_selection().get_selected() # model es el modelo de la tabla # iter es el numero que identifica la fila que marcamos if iter is not None: sid = model.get_value(iter, 0) funcioneshab.bajahab(sid) funcioneshab.ponerListadoEnGUI() except Exception as e: print('Detalles: ', e)
def on_btnBajahab_clicked(self, widget): """ Evento que da de baja una habitacion :return: Void """ try: numhab = variables.filahab[0].get_text() if numhab != '': funcioneshab.bajahab(numhab) funcioneshab.limpiarentry(variables.filahab) funcioneshab.listadohab(variables.listhab) else: pass except: print('borrar baja hab')
def on_btnBajahab_clicked(self, widget): ''' Se encarga de recoger el numero de la habitacion para darla de baja @param widget: @return: ''' try: numhab = variables.filahab[0].get_text() if numhab != '': funcioneshab.bajahab(numhab) funcioneshab.limpiarentry(variables.filahab) funcioneshab.listadohab(variables.listhab) else: pass except: print('borrar baja hab')
def on_btnBajahab_clicked(self, widget): """ Gestiona el botón de baja en la ventana de habitaciones. Da de baja una habitación. :param widget: :return: No devuelve nada. """ try: numhab = variables.filahab[0].get_text() if numhab != '': funcioneshab.bajahab(numhab) funcioneshab.limpiarentry(variables.filahab) funcioneshab.listadohab(variables.listhab) else: pass except: print('borrar baja hab')
def on_btnBajahab_clicked(self, widget): """ Borra una habitacion seleccionada en el treeview. Elimina una habitacion del registro al seleccionarla en el treeview, limpia los entries y carga el treeview de nuevo. :param widget: :return: void """ try: numhab = variables.filahab[0].get_text() if numhab != '': funcioneshab.bajahab(numhab) funcioneshab.limpiarentry(variables.filahab) funcioneshab.listadohab(variables.listhab) else: pass except: print('borrar baja hab')