def show_Map(self): self.table_Activos.setCurrentCell(self.table_Activos.currentRow(), 3) item = self.table_Activos.currentItem() paseo = Funciones.get_paseo(self.paseos_activos, int(item.text().strip())) if(item!=None): mapa = WebView(Url(self.direccion, Funciones.get_recorrido(self.direccion, paseo.get_Espacio(), self.mascotas,self.clientes, int(item.text().strip())), "14")) mapa.exec_()
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)