J
John Salerno
According to the Python docs, the way to use tkinter.ttk is this:
from tkinter import *
from tkinter.ttk import *
But what if I don't like this import method and prefer to do:
import tkinter as tk
How then do I utilize tkinter.ttk using the same name? Or is that not possible? Will I have to use to separate names, like this:
import tkinter as tk
import tkinter.ttk as ttk
Is that the only way?
from tkinter import *
from tkinter.ttk import *
But what if I don't like this import method and prefer to do:
import tkinter as tk
How then do I utilize tkinter.ttk using the same name? Or is that not possible? Will I have to use to separate names, like this:
import tkinter as tk
import tkinter.ttk as ttk
Is that the only way?