tkinter的增强控件,将tkinter的基础控件进行封装,给予更强大的控件功能,所有控件继承于LabelFrame进行封装,使用方法和普通控件没什么区别;
Project description
tktk
浠嬬粛
tkinter鐨勫炲己鎺т欢锛屽皢tkinter鐨勫熀纭鎺т欢杩涜屽皝瑁咃紝缁欎簣鏇村己澶х殑鎺т欢鍔熻兘锛屾墍鏈夋帶浠剁户鎵夸簬LabelFrame杩涜屽皝瑁咃紝浣跨敤鏂规硶鍜屾櫘閫氭帶浠舵病浠涔堝尯鍒锛
杞浠舵灦鏋
杞浠舵灦鏋勮存槑
瀹夎呮暀绋
- pip install git+https://gitee.com/w-8/tktk.git
- pip install tktk
- xxxx
浣跨敤璇存槑
import tkinter as tk
import tktk
if __name__=="__main__":
win = tk.Tk()
xe=tktk.LogFrame(win)
xe.grid(column=0,row=0,sticky="WNSE")
win.columnconfigure(0,weight=1)
tk.Button(win,text="Insert1",command=lambda: xe.m_Gui_LogInsert("233")).grid(column=0,row=1,sticky='WNSE')
tk.Button(win,text="Insert2",command=lambda: xe.m_Gui_LogInsert("244",True)).grid(column=0,row=2,sticky='WNSE')
tk.Button(win,text="Clear",command=lambda: xe.m_Gui_LogClear()).grid(column=0,row=3,sticky='WNSE')
win.mainloop()
婕旂ず鍥剧墖
鍙備笌璐$尞
- Fork 鏈浠撳簱
- 鎷夊彇Fork鍚庝粨搴撶殑浠g爜鍒版湰鍦
- 鎻愪氦浠g爜
- 鏂板缓 Pull Request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tktk-0.3.tar.gz
(6.6 kB
view hashes)