Python提供了Tkinter工具包来开发GUI应用程序。现在,它取决于开发人员的想象力或必要性,他/她想要使用此工具包开发什么。让我们使用Tkinter制作一个简单的信息表格GUI应用程序。在此应用程序中,用户必须填写所需信息,并将该信息自动写入excel文件。
# Function to set focus (cursor)
def
focus1(event):
# set focus on the course_field box
course_field.focus_set()
# Function to set focus
def
focus2(event):
# set focus on the sem_field box
sem_field.focus_set()
# Function to set focus
def
focus3(event):
# set focus on the form_no_field box
form_no_field.focus_set()
# Function to set focus
def
focus4(event):
# set focus on the contact_no_field box
contact_no_field.focus_set()
# Function to set focus
def
focus5(event):
# set focus on the email_id_field box
email_id_field.focus_set()
# Function to set focus
def
focus6(event):
# set focus on the address_field box
address_field.focus_set()








暂无数据