Skip to content Skip to sidebar Skip to footer

Saving Connect Statements Pyqt When Ui Is Still Changing

This is a project construction question. I'm building a window using QT designer, but i'm still new at it so I'm making lots of changes. I want to start using that in my real code,

Solution 1:

of course this is the way to do it...it allows you to modify the logic of your code independently without touching the auto-generated ui, you can even move the auto-generated ui files into a seperate package for better modularity

/project
    /ui
        # your auto-generated ui files
    /logic
        # your application logic which get their ui from the ui package

    main.py

your main.py should be very minimal something like this

def main():
    app = QtGui.QApplication(sys.argv)
    window = Window()
    window.show()
    sys.exit(app.exec_())

if __name__ == '__main__': main()

Post a Comment for "Saving Connect Statements Pyqt When Ui Is Still Changing"