filmov
tv
L5 Python App AI-2V-DDE the function db_open Two Rows TextBoxes and 2 EntryBoxes Code in Description

Показать описание
Lesson 5 Code
...................................................................................
def db_open():
s1 = "script dir (db_location): "
s2 = app_executed_script_dir_path
# l is the identifier
# for the memory space
# in which
# there is an instance
# of code of object type Label
# l = Label(w, text=_s_)
filetypes=[("Text files","*.txt")],
initialdir=app_executed_script_dir_path,
title="e1 Open Keywords Fille")
if(selected_filename != None):
f = open(selected_filename, encoding ='utf-8')
# set_text(selected_filename, e2)
set_text(selected_basename_name_of_file, e1)
set_text(s, e2)
b_db_save_as["state"] = "active"
b_db_open = Button(w, text ="db Open", command = db_open)
............................................................................................................