python - 删除笔记本标签 tkinter 周围的虚线
问题描述
我最近正在尝试使用 tkinter python 制作 pokedex,我做得很好,但是出现了一个问题,这使得整个界面变得丑陋!
每个活动按钮和笔记本选项卡中都有一个虚线边框,破坏了整个程序的外观。
样式代码也没有解决!
注意:我尝试使用focuscolor,但没有帮助......
import tkinter as tk
from tkinter.ttk import *
root = tk.Tk()
root.geometry('700x500')
Style().configure('lefttab.TNotebook', tabposition='wn')
Style().configure('TNotebook.Tab', font='Courier 16')
notebook = Notebook(root, style='lefttab.TNotebook')
f1 = tk.Frame(notebook, width=500, height=400)
f2 = tk.Frame(notebook, width=500, height=400)
notebook.add(f1, text='Kantodex Vx')
notebook.add(f2, text=' Attacks ')
notebook.pack(anchor=tk.NW)
root.mainloop()
解决方案
推荐阅读
- php - PHP API 不能与改造/gson 结合使用
- discord.py - 我正在尝试为我的经济机器人创建一个共享命令,但它不会让我按照我想要的方式格式化我的命令
- c - 从带有 strtok + qsort 问题的行中读取
- asp.net-core - 带有用户管理系统的 IdentityServer4 需要在 ASP.net 核心项目中实现
- r - R中整个数据集的回归线(每组两条回归线)
- excel - VBA 编译错误:“对于已在使用的控制变量”
- python - 使用 asp dot net core Process.Start() 执行的 Python 脚本找不到模块
- r - R中基于行关系值的数据拆分
- android - 由于敏感的应用权限,无法将新版本发布到 Google Play
- python - 如何在 discord.py 中获得角色,如果角色不存在则创建角色