![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tkinter
iSH_
这个作者很懒,什么都没留下…
展开
-
tkinter_ttk_clam主题
如下import tkinter as tkfrom tkinter import ttkroot = tk.Tk()# root.geometry("550x600+5+5")root.configure(bg="#dcdad5")root.title("clam")s=ttk.Style()# print(s.theme_names())s.theme_use('clam')ctnvar1 = tk.IntVar(value=1)ctnvar2 = tk.IntVar(v原创 2021-03-03 20:30:04 · 650 阅读 · 1 评论 -
tkinter多线程刷新界面
参考:https://blog.csdn.net/u013700771/article/details/103321783环境:win10 + Python3.9 + tkinter8.6.9import tkinter as tkfrom tkinter import ttkimport threading, time, sys, queue def fmtTime(timeStamp): timeArray = time.localtime(timeStamp) dat原创 2021-02-19 16:51:41 · 2889 阅读 · 1 评论 -
tkinter-可选择复制的message控件实现
代码如下import tkinter as tkfrom tkinter import ttkroot = tk.Tk()root.geometry('300x200+5+5')root.title('a selectable message')btn1 = ttk.Button(root,text="mybtn1",takefocus=0)btn2 = ttk.Button(root,text="mybtn2",takefocus=0)selectableMsg = tk.Tex原创 2020-11-28 14:36:38 · 2560 阅读 · 0 评论 -
tkinter实现文件拖放及插件下载
信息参考:https://stackoverflow.com/questions/25427347/how-to-install-and-use-tkdnd-with-python-tkinter-on-osx蓝奏云:https://wwe.lanzous.com/b00zq92jc密码:4ukb安装:On OSX:1) Copy the tkdnd2.8 directory to /Library/Tcl2) Copy the TkinterDnD2 directory to /Li.原创 2020-08-10 16:04:47 · 1019 阅读 · 0 评论 -
tkinter中ttk控件的width-height设置
tkinter中窗口,框架容器,控件如果不设置宽度高度,则会根据其中的内容自动设置宽度高度如果窗口,框架容器,控件中没有内容,宽度和高度为默认的最小尺寸(可能看不到)顶级窗口:import tkinter as tkfrom tkinter import ttkwin = tk.Tk()win1 = tk.Toplevel()win.geometry('600x600') #设置顶级窗口宽度高度,单位像素点win1.geometry('600x600') #设置顶级窗口宽度高度,单位原创 2020-07-13 17:31:13 · 11673 阅读 · 0 评论 -
ttk主题
ttk代替tk能够较好地改善GUI界面在操作系统中的风格资料来源:http://blog.tcl.tk/48689import tkinter as tkfrom tkinter import ttkwin = tk.Tk()win.title("TTK_GUI")win.geometry("600x600+10+10")s = ttk.Style()print(s.theme_names()) #ttk所有主题风格[windows Python 3.8.3 tk 8.6.9]#out原创 2020-07-13 00:10:52 · 1951 阅读 · 0 评论