Пример #1
0
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
Пример #2
0
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)
Пример #3
0
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
Пример #4
0
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)
Пример #5
0
def moveto_table_trigger(event):
    global connection
    update_create_table(
        load_data.output_table(connection, event.widget.cget("text")),
        event.widget.cget("text"))
Пример #6
0
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