def plot_final(*args): global graph_chosen, table_choice title_string = str(title_entry.get()) pltr.Graphs(graph=graph_chosen, connection=connection_det[1], column_1=columns[0], table=table_choice, title=title_string)