示例#1
0
def initBus():
    # Input function to obtain route number from user
    route = input(
        '\n\n*******Get Buses*******\n\nPlease enter a route number (leave blank for all routes):\n\n'
    )

    # Call getBuses function with user-defined route number
    getBuses(route)
示例#2
0
def main():

    route = ""

    # Input function to obtain route number from user
    #route = getInput("route")

    # Call getBuses function with user-defined route number
    # getBuses(route)

    while True:
        getBuses(route)
        time.sleep(60)
示例#3
0
def main():

    route = ""

    # Input function to obtain route number from user
    #route = getInput("route")

    # Call getBuses function with user-defined route number
    # getBuses(route)

    while True:
        getBuses(route)
        time.sleep(60)
示例#4
0
def main():
	
	route = ""
	
	# Input function to obtain route number from user
	route = getInput("route")
	
	# Call getBuses function with user-defined route number
	getBuses(route)
	
	station = ""
	
	# Input function to obtain route number from user
	station = getInput("station")
	
	# Call getBuses function with user-defined route number
	getTrains(station)
示例#5
0
def main():

    route = ""

    # Input function to obtain route number from user
    route = getInput("route")

    # Call getBuses function with user-defined route number
    getBuses(route)

    station = ""

    # Input function to obtain route number from user
    station = getInput("station")

    # Call getBuses function with user-defined route number
    getTrains(station)
示例#6
0
def initBus():
    # Input function to obtain route number from user
    route = input('\n\n*******Get Buses*******\n\nPlease enter a route number (leave blank for all routes):\n\n')

    # Call getBuses function with user-defined route number
    getBuses(route)