Why import * and then ttk?

前端 未结 4 1564
梦谈多话
梦谈多话 2020-12-09 19:31

My understanding is that the standard set-up for a tkinter program starts off like this:

from tkinter import *
from tkinter import ttk

I un

4条回答
  •  感情败类
    2020-12-09 20:15

    Because tkinter/__init__.py doesn't import ttk, so ttk isn't included in from tkinter import *.

提交回复
热议问题