Author name: Madheshwaran M

Get a list of all available fonts in Tkinter using Python

Get a list of all available fonts in Tkinter using Python: In this lesson, we will learn how to retrieve a list of all available fonts in Tkinter using Python. import tkinter as tk import tkinter.font as font root=tk.Tk() root.geometry(“300×400”) list_box=tk.Listbox(root,width=40,height=20) list_box.pack(side=tk.LEFT,fill=tk.BOTH,expand=True) scrollbar=tk.Scrollbar(root,orient=tk.VERTICAL) scrollbar.config(command=list_box.yview) scrollbar.pack(side=tk.RIGHT,fill=tk.Y) list_box.config(yscrollcommand=scrollbar.set) available_fonts=font.families() for i in available_fonts: list_box.insert(tk.END,i) root.mainloop() Output:   …

Get a list of all available fonts in Tkinter using Python Read More »

How to create a Tkinter window at a specific of the screen using python

How to create a Tkinter window on a specific screen Basic introduction to GUI This tutorial will cover Python GUI concepts for graphical user interfaces. It is important to understand a Python GUI, how it works, and how to create one using Python programs. I am building a GUI to design a specific screen window …

How to create a Tkinter window at a specific of the screen using python Read More »

Scroll to Top