Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何增加文本小部件的字体大小?
有几种方法可以指定字体:最简单的是形式为 的元组(family, size, style)。
(family, size, style)
import Tkinter as tk root=tk.Tk() text=tk.Text(width = 40, height=4, font=("Helvetica", 32)) text.pack() root.mainloop()