简介
接上一次的tkinter编写界面相关内容,丰富点常用控件的方法,学会了这些控件布局和相关方
法属性,能够满足日常小工具的制作需求了。
搭建的界面框架如下图所示,功能可以自己添加。
界面代码
# -*- coding: utf-8 -*-
import os
from tkinter import *
from tkinter import messagebox
from tkinter.filedialog import askopenfilename
from os.path import isfile
fileName = ''
def func1(strfile):
print('fun1' + strfile)
def func2(strfile):
print('fun2' + strfile)
def fun3(strfile):
print('fun3' + strfile)
def fileopen():
v.set("")
txtinfo.delete('0.0', END)
gl