You've finished designing your GUI in Qt Designer and now you want to create a Python code from it.
1. Open "Command Prompt" in Windows.
2. Move to a folder where your GUI has been saved.
3. Run:
pyuic6 file_name_of_your_GUI.ui > file_name_of_a_Python_code_to_be_created.py
Note that pyuic6 is for PyQt6. If you use PyQt5, it should be pyuic5.
You can skip Step 2 and then file name must include PATH (e.g., c:\user\my_GUI.ui)
No comments:
Post a Comment