A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/098701.html below:

global font for Tkinter

global font for Tkinter global font for TkinterFredrik Lundh fredrik at pythonware.com
Wed Apr 25 13:37:37 EDT 2001
"Jacek Pop³awski" wrote:
> How to set global font for all Tkinter widgets?

here's one way to do it:

from Tkinter import *

root = Tk()

root.option_add("*font", "Times 24")

w = Label(root, text="hello")
w.pack()
w = Entry(root)
w.pack()
w = Listbox(root)
w.insert(END, "hello", "world")
w.pack()

mainloop()

Cheers /F



More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4