Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the font size of a Text widget?

How to increase the font size of a Text widget?

like image 284
A Tenzin Giovannini Glassel Avatar asked Nov 22 '10 14:11

A Tenzin Giovannini Glassel


1 Answers

There are several ways to specify a font: the simplest is a tuple of the form (family, size, style).

import Tkinter as tk

root=tk.Tk()
text=tk.Text(width = 40, height=4, font=("Helvetica", 32))
text.pack()    
root.mainloop()
like image 178
Bryan Oakley Avatar answered Oct 13 '22 04:10

Bryan Oakley