Python3.7 Tkinter on Ubuntu 18.10

0

I would like to add a logo and change the font of the title on the main Tk window. Here is my code. The commented part is my attempt to change the font of the title.

import tkinter as tk
from tkinter import *
from tkinter.ttk import *
import tkinter.font as tkfont

root = tk.Tk() 
#defont = tkfont.nametofont("TkDefaultFont")
#defont.configure(size=20)
#_fam = defont.actual()["family"]
#defont = tkfont.Font(family=_fam)
#defont.configure(size=20)
#root.option_add("*Font",defont)
root.title("Workflow Editor")
root.iconphoto(True,PhotoImage(file="draw_star.gif"))
root.mainloop()
~

Girish S Joglekar

Posted 2019-04-18T14:15:30.823

Reputation: 1

No answers