Dec-15-2023, 05:08 PM
If you don't need the __init__ why are you implementing your decorator as a class?
This is a problem:
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).