Python Forum
Database connection problems [login, PyQt5, PySql]
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database connection problems [login, PyQt5, PySql]
#6
If you don't need the __init__ why are you implementing your decorator as a class?

This is a problem:
@LoginDecorator()
def show_main_window():
    app = QApplication(sys.argv)
Your decorator attempts to create a BSLoginDialog before initializing the Qt package (making the application).
Reply


Messages In This Thread
RE: Database connection problems [login, PyQt5, PySql] - by deanhystad - Dec-15-2023, 05:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  "ModuleNotFoundError: No module named 'PyQt5.QtWidgets'; 'PyQt5' is not a package" chipx 3 7,559 Dec-09-2021, 07:05 AM
Last Post: chipx
  pysql connection to cloud server database times out Pedroski55 9 4,820 Oct-11-2021, 10:34 PM
Last Post: Pedroski55
  Serial connection connection issue Joni_Engr 15 8,220 Aug-30-2021, 04:46 PM
Last Post: deanhystad
  in a login interface when i try login with a user supposed to say test123 but nothing NullAdmin 3 2,319 Feb-20-2021, 04:43 AM
Last Post: bowlofred
  Connection DATABASE to Python MenThoLLt 3 2,467 Jan-17-2020, 10:35 PM
Last Post: DT2000
  Unable to login to remote SQL Server database sipriusPT 1 15,095 Dec-20-2019, 10:16 AM
Last Post: sipriusPT
  Problems converting pyqt4 script to pyqt5 using pyqt4topyqt5.py Vysero 1 2,818 Jul-31-2018, 08:56 PM
Last Post: Axel_Erfurt
  Error in running MS Access Database connection code pyuser1 4 7,729 Feb-01-2018, 08:28 PM
Last Post: pyuser1
  Connection to MS SQL Database not working mruprai 1 2,789 Sep-25-2017, 03:58 PM
Last Post: buran

Forum Jump:

User Panel Messages

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