def del_trigger(event): global connection global curr_table global curr_row load_data.delete_record(connection, curr_table, curr_row) update_create_table(load_data.output_table(connection, curr_table), curr_table) # update
def model_del_trigger(event): global curr_table global connection # print(event.widget.get()) load_data.delete_model(connection, event.widget.get()) update_create_table(load_data.output_table(connection, curr_table), curr_table)
def insert_trigger(event): global connection global curr_table global insert_args inp = [] for i in insert_args: inp.append(i.get()) load_data.insert_table(connection, curr_table, inp) update_create_table(load_data.output_table(connection, curr_table), curr_table) # update
def test_calls_trigger(event): global connection global curr_table load_data.test_calls(connection) update_create_table(load_data.output_table(connection, curr_table), curr_table)
def moveto_table_trigger(event): global connection update_create_table( load_data.output_table(connection, event.widget.cget("text")), event.widget.cget("text"))
def clear_trigger(event): global connection global curr_table load_data.clear_table(connection, curr_table) update_create_table(load_data.output_table(connection, curr_table), curr_table) # update