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)