Skip to content

Import tkinter globally

You can import Tkinter and Ttk globally so you have no need for the tkinter module prefix (tkinter.Message for example):

from tkinter import *
from tkinter.ttk import *

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.