Python - 来自 ttk 中 tkinter 的文本小部件 [英] Python - Text widget from tkinter in ttk
本文介绍了Python - 来自 ttk 中 tkinter 的文本小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我注意到 tkinter 的 Text 小部件没有出现在 ttk 小部件中.我使用 ttk 而不是 tkinter,因为它的界面更适合.我需要 Text 小部件,因为它有多行,不太可能是 Entry 小部件.有人能解决我的问题吗?
I noticed that the Text widget from tkinter is not present in the ttk widgets. I'm using the ttk instead of tkinter because its interface suits better. And I need Text widget because it has multiple lines unlikely the Entry widget. Does anyone have a solution for my problem?
推荐答案
解决方案是使用 tkinter 文本小部件.tkinter 和 ttk 旨在协同工作.
The solution is to use the tkinter text widget. tkinter and ttk are designed to work together.
这篇关于Python - 来自 ttk 中 tkinter 的文本小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文