首页 > 解决方案 > Python Tkinter“exportselection”在 Windows 机器上不起作用

问题描述

tkinter 文本框功能,exportselection=False不适用于 Win10 机器。

我有 2 个文本框,我需要同时突出显示它们。我刚刚发现exportselection=False并且可以在我的 Linux 机器上运行。

到目前为止,我尝试了 3 台 Linux 机器,2 台 Win10 机器,它似乎只适用于 Linux。

textBox = Text(midFrame, height=textArea_height, width=textArea_width, exportselection=False)

为什么win10不能用?

标签: pythontkintertk

解决方案


推荐阅读