Python Forum
PyQt5 No Error But GUI Window Not Loading
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyQt5 No Error But GUI Window Not Loading
#1
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.
Reply
#2
-------
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to call and focus any popup window outside of the main window app? Valjean 6 1,777 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  Pyspark Window: perform sum over a window with specific conditions Shena76 0 1,177 Jun-13-2022, 08:59 AM
Last Post: Shena76
  "ModuleNotFoundError: No module named 'PyQt5.QtWidgets'; 'PyQt5' is not a package" chipx 3 7,462 Dec-09-2021, 07:05 AM
Last Post: chipx
  Error loading Trelby.py blackclover 3 2,518 Jan-05-2021, 10:08 PM
Last Post: blackclover
  Error loading location on openweathermap via API with Kivy Gigux 10 5,566 Apr-24-2019, 06:08 PM
Last Post: Yoriz
  Getting error while loading excel(.xlsx) file using openpyxl module shubhamjainj 1 8,975 Mar-01-2019, 01:05 PM
Last Post: buran
  error creating new object after loading pickled objects from file arogers 2 3,439 Feb-02-2019, 10:43 AM
Last Post: Larz60+
  Error while loading the csv file Analyst 3 10,235 Oct-18-2017, 07:07 AM
Last Post: Analyst

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020