Solved. I will apply the solution here if anyone is interested.

During the conversion enter --console for the console to appear when you 
run the exe file. (pyinstaller --console filename.py)

When you run the exe and face an error like me, the error will appear on 
the console screen.

For me it was the missing icon files of the new windows that I forgot to 
add in the final file that contains exe and all the additional files 
(photos, databases etc).

That's it, it worked!

Στις Κυριακή, 14 Μαρτίου 2021 στις 1:31:14 μ.μ. UTC, ο χρήστης Christos Fyt 
έγραψε:

> Hello
>
> I face a problem when trying to convert my .py file to .exe.
>
> My .py file uses GUI interface and multiple windows open when clicking 
> some buttons. To be specific I have one main window and 2 more that have 
> been added to code as new_window = Toplevel(window)
>
> The problem is that when .py is converted to exe the main window is 
> displayed and working fine but those additional windows are not loaded and 
> not working properly.
>
> I have to say that my program runs smoothly in pycharm so there is no 
> error in the code.
>
> I couldn't find anything relevant in my google search.[image: 13-3-2021 
> 11-28-01 πμ.jpg]
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/d6e1bb8e-86b4-4901-878a-7c421e937221n%40googlegroups.com.

Reply via email to