[Python] Tkinter import and from

Discussão em 'Python' iniciado por Stack, Julho 12, 2025.

  1. Stack

    Stack Membro Participativo

    I have a script that uses tkinter and this is how I start:

    import tkinter.messagebox
    from tkinter import *
    from tkinter.filedialog import askdirectory
    from tkinter import ttk


    I am mixing here both import and from..import. Is it ok? Is there another way so I do not mix them both?

    Thanks

    Continue reading...

Compartilhe esta Página