We already know that we can convert from ui to py easily with pyuic4.
Is possible to convert .py (that only contains pyqt ui related stuff) code back to .ui.
I can give you an example of why such a thing: when you inherited a project and the original developer didn't place the ui files in the repository (only left there the generated by pyuic4). True, that is a very particular example and that's also my reason why I'm trying to find something (is not a matter of one single ui file).
In a more generic way I can imagine that this would had happen to the previous developer in case of a disk fail.
Yes, I'm completely agreed that such a tool is not a normal thing to be provided like pyuic4...
Converting .py to .ui file