Python Can';不要将百分格字体与Tkinter一起使用

Python Can';不要将百分格字体与Tkinter一起使用,python,tkinter,fonts,Python,Tkinter,Fonts,我想使用Tkinter格式的CenturyGothic,但它不会改变字体 我的代码: import tkinter import datetime import time app = tkinter.Tk() app.title("Clock") app.geometry("1280x720") app.minsize(640,480) def middle_screen(): w = 1280 h = 720 ws = app

我想使用Tkinter格式的CenturyGothic,但它不会改变字体

我的代码:

import tkinter
import datetime
import time


app = tkinter.Tk()
app.title("Clock")
app.geometry("1280x720")
app.minsize(640,480)
def middle_screen():
    w = 1280
    h = 720
    ws = app.winfo_screenwidth()
    hs = app.winfo_screenheight()
    x = (ws/2) - (w/2)
    y = (hs/2) - (h/2)
    app.geometry('%dx%d+%d+%d' % (w, h, x, y))
middle_screen()
app.configure(bg='white')

CurrentTime = str(datetime.datetime.now().strftime("%H"+":"+"%M"))
label_time = tkinter.Label(app, text=CurrentTime, bg='white', fg='black')
label_time.configure(font='GothicCentury 48 bold')
label_time.pack()

app.mainloop()
结果是:

它应该是什么: 试试这个:

label_time.configure( font=("Century Gothic", 48, 'bold'))

太谢谢你了