中心文本小部件python tkinter的中心选择

问题描述

我有一个文本小部件

import tkinter as tk

root = tk.Tk()

text_Box = tk.Text(root)
text_Box.pack()

text_Box.tag_config("tag-center",justify="center")
text_Box.insert("end","22","tag-center")

root.mainloop()

但是当我选择我有这个

enter image description here

但我只想选择文本

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)