Hello Dear Developers and Users,
In the implementation of the module, I am using the Extension Wizard module. This module utilizes a fixed template, the result of which ultimately creates a .ui file and its corresponding Python file. For example, let’s assume that the name of this module is developModuleTry01. After switching to the developModuleTry01 module, I can run the Qt Designer within 3DSlicer and add or remove the module’s widgets. After saving and exiting Qt Designer, I click on Reload and Test to apply the changes. However, I noticed that the Python file does not change when I edit the UI file. I also checked other options of the developModuleTry01 module, including Reload and Restart Slicer, but I observed that the Python file still doesn’t change when I edit the module’s UI.
Is it a correct and reasonable expectation that the Python file should also change when I edit the UI through Qt Designer?
I know that, in general, to generate Python code from a UI file created with Qt Designer, tools like or pyuic or pyuic5 should be used. Similarly, in 3DSlicer, a tool similar to pyuic5 should be used, and it is expected that when using Edit UI and clicking on Reload and Test, two things should happen:
one, the graphical environment of the module is reloaded, and
two, a tool like pyuic5 is executed to regenerate the Python file.
Is my assumption incorrect?
Please guide me.
Best regards.
Shahrokh