【文件属性】:
文件名称:tkinter-tabview:tkinter-tabview
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-02 19:43:23
tkinter tkinter-gui Python
tkinter-tabview
ttk中虽然添加了Notebook,但其功能过于简单,无法支持双击创建选项卡,删除选项卡等功能,于是自定义了tabview,有需要的朋友,可以参考在tkinter中自定义view的方法,自定义自己的view
使用方法
import tkinter as tk
from tkinter import messagebox
from tabview import TabView
def create_body():
global body
return tk.Label(body, text="this is body")
def select(index):
print("current selected -->", index)
def remove(index):
print("remove tab -->", index)
【文件预览】:
tkinter-tabview-master
----dragwindow.py(1KB)
----tabview.py(5KB)
----LICENSE(1KB)
----remove.gif(1KB)
----search_box.py(2KB)
----README.md(3KB)
----test.py(1019B)