Beispiel #1
0
 def registro_Arribo(self):
     self.table_Activos.setCurrentCell(self.table_Activos.currentRow(), 3)
     item = self.table_Activos.currentItem()
     if(item!=None):
         paseo = Funciones.get_paseo(self.paseos_activos, int(item.text().strip()))
         msg_confirm = MsgBoxConfirm()
         msg_confirm.set_Text("¿Registra el arribo del paseador?")
         msg_confirm.set_Title("Confirmar")
         msg_confirm.exec_()
         if (msg_confirm.get_Result()==1):
             self.paseos_activos[paseo.get_Paseador()].set_Arribo(time.strftime("%H:%M:%S"))
             self.paseos_historial.append(self.paseos_activos.pop(paseo.get_Paseador()))
             self.update_Table_Activos(self.paseos_activos.values())
             self.update_Table_Historial(self.paseos_historial)
 def remove_Espacio(self):
     msg = MsgBoxConfirm()
     msg.set_Text("¿Seguro elimina el Espacio?")
     msg.set_Title("Confirmar")
     if(msg.exec_()==1):        
         self.__espacios.remove(self.combo_Espacios.itemData(self.combo_Espacios.currentIndex()))   
         self.combo_Espacios.removeItem(self.combo_Espacios.currentIndex())