コード例 #1
0
        def repeat_ride_window():
            driver_availability = DbManager.check_driver_availability(self, "customer")

            if (driver_availability == 0):
                alert.showinfo("info", "No Drivers Available! ")
            else:
                CustomerScreen.repeat_ride_window_customer(self, customer_window, global_username)
コード例 #2
0
        def get_ride_form():
            driver_availability=DbManager.check_driver_availability(self,"customer")

            if(driver_availability==0):
                alert.showinfo("info", "No Drivers Available! ")
            else:
                customer_window.withdraw()
                RideForm.ride_form(self,customer_window,global_username)
コード例 #3
0
 def get_pending_rides_list():
     availability_status = DbManager.check_driver_availability(
         self, global_username)
     if (availability_status != 0):
         driver_status = DbManager.verify_driver_status(self, username)
         if (driver_status == 0):
             Ride_acceptance_window.ride_window(self, username)
         else:
             alert.showinfo("info",
                            "Driver has already accepted a ride")
     else:
         alert.showinfo("Info",
                        "Turn on availabilty before accepting rides!")