# Function for getting values from
# respective text entry boxes and
# calling result function .
def find() :
# get method returns current text
# as a string from text entry box
source = source_field.get()
destination = destination_field.get()
travel_modes = mode_field.get()
# Calling result() Function
result(source, destination, travel_modes)
# Function for inserting the train string
# in the mode_field text entry box
def train() :
mode_field.insert(10, "train")
# Function for inserting the driving string
# in the mode_field text entry box
def driving() :
mode_field.insert(10, "driving")
# Function for inserting the walking string
# in the mode_field text entry box
def walking() :
mode_field.insert(10, "walking")
# Function for clearing the contents
# of source_field, distance_field,
# duration_field text entry boxes.
def del_source() :
source_field.delete(0, END)
distance_field.delete(0, END)
duration_field.delete(0, END)
# Function for clearing the contents of
# destination_field, distance_field,
# duration_field text entry boxes.
def del_destination() :
destination_field.delete(0, END)
distance_field.delete(0, END)
duration_field.delete(0, END)
0.0000
0
1
关注作者
收藏
发表评论
暂无数据

