submodules

ast nomail at com.invalid
Fri Mar 18 06:42:08 EDT 2016


Hello

Since in python3 ttk is a submodule of tkinter, I was expecting this
to work:

from tkinter import *

root = Tk()
nb = ttk.Notebook(root)

but it doesnt, ttk is not known.

I have to explicitely import ttk with

from tkinter import ttk

why ?



More information about the Python-list mailing list