Why do I need to explicitly import the font module from the tkinter module even if have imported the full module using “*”?
问题 I have tried to run the give python snippet: from tkinter import * from tkinter import font root = Tk() list_fonts = list(font.families()) for i in list_fonts: print(i) root.mainloop() I get the output as: Sitka Display Sitka Banner Nirmala UI Semilight Leelawadee UI Gadugi Microsoft New Tai Lue DokChampa Segoe UI Calibri Miriam Angsana New Iskoola Pota Kartika Segoe UI Semilight Vijaya Nirmala UI Mongolian Baiti Microsoft YaHei @Microsoft YaHei Microsoft YaHei UI @Microsoft YaHei UI Vani