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()