1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Problems with Tkinter Filedialog and TopLevel

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

  1. Stack

    Stack Membro Participativo

    I have a question/problem.

    Do someone know why it cannot show a TopLevel window after launch FileDialog module?. I explain myself.

    The programm loads data of a file. I run FileDialag module to choose the file and get the path of the file, and finally I get data of this file. I would like to show a Windows with a waiting message, before the code gets the data of the file, just after of having the file path data.

    If I run TopLevel just before the FileDialog module, the window is showed and then it is executed the FileDialog code.

    But if I run FileDialog before, the windows (TopLevel) is showed at the end (not immediately after) of the code when the FileDialog execution has finished.

    If I remove the file variable (where it saves the file path obteined though FileDialog), the TopLevel windows is showed.

    Thanks in advance.

    Kind regards, Ric.

    I want to execute a secondary windows while I am loading data of a file.

    Continue reading...

Compartilhe esta Página