Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102253 > unrolled thread

Font issues Tkinter/Python 3.5

Started byKP <kai.peters@gmail.com>
First post2016-01-29 14:04 -0800
Last post2016-01-29 14:04 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Font issues Tkinter/Python 3.5 KP <kai.peters@gmail.com> - 2016-01-29 14:04 -0800

#102253 — Font issues Tkinter/Python 3.5

FromKP <kai.peters@gmail.com>
Date2016-01-29 14:04 -0800
SubjectFont issues Tkinter/Python 3.5
Message-ID<0459973c-dfcd-4733-9078-6e009c105ba2@googlegroups.com>
import tkinter as tk
from tkinter import ttk
from tkinter import font
...
    def __init__(self):
        self.root = tk.Tk()
        self.root.title('Main Window')
        self.root.geometry('1000x800+200+200')
        self.root.minsize(width=1000, height=800)
        
        default_font = tkFont.nametofont("TkDefaultFont")
        default_font.configure(size=12)
        self.root.option_add("*Font", default_font)        
        ... 
        self.root.mainloop()
...

tells me that 'tkFont' is not defined. What am I missing?

As always, thanks for any pointers!

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web