ttkbootstrap
实例
import tkinter as tk
import tkinter
from tkinter.ttk import Button
from ttkbootstrap import Style, Floodgauge
import ttkbootstrap as ttk
# new approach
root = ttk.Window(themename="new")
root.title('浏览器')
root.geometry("1000x600")
entry = ttk.Entry(root,width=50)
# default floodgauge style
# success colored floodguage style
entry.place(x=260,y=250,width=280,height=50)
button = ttk.Button(root,text='搜索')
button.place(x=540,y=250,width=60,height=60)
root.mainloop()
自行设置主题:
python -m ttkcreator
第一个是按钮
bg背景
其他的未知
运行截图
You