Exemplo n.º 1
0
 def start_ride():
     Thread(target=Ride_acceptance_window.reached_location,
            args=(
                self,
                ride_details,
                user_details,
            )).start()
     start_ride_window.destroy()
     DbManager.modify_ride_distribution_after_verification(
         self, "ride_started", ride_details[6])
     driver_winodw_mainscreen.deiconify()
Exemplo n.º 2
0
 def reached_location(self, ride_details):
     count = 0
     while (True):
         time.sleep(1)
         count += 1
         if (count == 20):
             alert.showinfo(
                 "Info", "Hey ," + " You Reached destination!" +
                 "\nRIDE ID: " + ride_details[6])
             DbManager.modify_ride_distribution_after_verification(
                 self, "completed", ride_details[6])
             break
Exemplo n.º 3
0
 def not_verified_customer_msg():
     DbManager.modify_ride_distribution_after_verification(
         self, "notverified", ride_details[6])
     verify_customer_window.destroy()
     driver_winodw_mainscreen.deiconify()
     alert.showinfo("info", "Verification Failed!")