Python Forum

Full Version: PyQt5 No Error But GUI Window Not Loading
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys any ideas whats up with this?

[Image: ezhq1CjERMuVLJU3JVi-EQ.png]

It's not using QtGui in the code yet its been imported (see above pic) - could that be causing the problem?

Code below:

Am I supposed to call one of those defines or the class or something? I was watching some tutorials and they just run the code and the window pops up. Not sure why its not working for me lol.
-------
UPDATE:
-------
Got it working by uninstalling an old version of Python (2.7) guess there was some kinda conflict.

Could also be that I wasn't using -x

pyuic5.exe -x myfirstbutton.ui -o myfirstbutton.py