Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102253
| X-Received | by 10.182.250.233 with SMTP id zf9mr10518022obc.5.1454105098159; Fri, 29 Jan 2016 14:04:58 -0800 (PST) |
|---|---|
| X-Received | by 10.50.73.231 with SMTP id o7mr381253igv.2.1454105098096; Fri, 29 Jan 2016 14:04:58 -0800 (PST) |
| Path | csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!o2no326057iga.0!news-out.google.com!l1ni971igd.0!nntp.google.com!h5no485751igh.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Fri, 29 Jan 2016 14:04:57 -0800 (PST) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=209.97.193.146; posting-account=JdkEkAoAAACHHyWOqVGU4JQp9A_G34rU |
| NNTP-Posting-Host | 209.97.193.146 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <0459973c-dfcd-4733-9078-6e009c105ba2@googlegroups.com> (permalink) |
| Subject | Font issues Tkinter/Python 3.5 |
| From | KP <kai.peters@gmail.com> |
| Injection-Date | Fri, 29 Jan 2016 22:04:58 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.python:102253 |
Show key headers only | View raw
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!
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Font issues Tkinter/Python 3.5 KP <kai.peters@gmail.com> - 2016-01-29 14:04 -0800
csiph-web