Answer the question
In order to leave comments, you need to log in
How to separate generated code and native code in Py QtDesigner?
Hello. I'm just starting to learn the Python3.4 + PyQt (QtDesigner) bundle.
I've run into a problem that I don't know how to get around. QtDesigner is great at drawing GUIs. With the help of the pyuic5 utility, it is cool to translate it into python code. And with the help of cx_freeze, all this is coolly generated into portable applications. But here's the problem.
I started to write something more serious than an empty window. I need to do event handling. To do this, you need to push your function into the signal / slot.
But after all my file is generated each time anew by the designer if I change something on the form. And all changes in the code of the module describing the interface will be lost. How is it customary to get around this moment?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
There is one Russian-language textbook where the basics of working with PyQt are dealt with in great detail and intelligibly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question