Python Tkinter字体选择器 [英] Python Tkinter Font Chooser

查看:563
本文介绍了Python Tkinter字体选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用Tkinter写简单的记事本。我需要一些字体选择器。所以我的问题是:是否包括一个?如果没有,我在哪里可以得到一个?



谢谢。

解决方案

在默认分配中有任何字体选择器。你需要创建自己的。这里是我发现的一个例子: Tkinter FontChooser



注意:Tk 8.6将在字体选择器对话框中建立: FontChooser


I'm trying to write simple notepad with Tkinter. And I need some font chooser. So my question is: is there included one? and if there isn't, where can I get one?

Thanks.

解决方案

Tk (and Tkinter) doesn't have any font chooser in the default distribution. You'll need to create your own. Here is an example I found: Tkinter FontChooser

Note: Tk 8.6 will have a build in font chooser dialog: FontChooser

这篇关于Python Tkinter字体选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆