A RetroSearch Logo

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

Search Query:

Showing content from https://www.tutorialspoint.com/python/tk_fonts.htm below:

Tkinter Fonts

Tkinter Fonts

There may be up to three ways to specify type style.

Simple Tuple Fonts

As a tuple whose first element is the font family, followed by a size in points, optionally followed by a string containing one or more of the style modifiers bold, italic, underline and overstrike.

Example Font object Fonts

You can create a "font object" by importing the tkFont module and using its Font class constructor −

import tkFont
font = tkFont.Font ( option, ... )

Here is the list of options −

Example
helv36 = tkFont.Font(family="Helvetica",size=36,weight="bold")
X Window Fonts

If you are running under the X Window System, you can use any of the X font names.

For example, the font named "−*−lucidatypewriter−medium−r−*−*−*−140−*−*−*−*−*−*" is the author's favorite fixed−width font for onscreen use. Use thexfontsel program to help you select pleasing fonts.

python_gui_programming.htm


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