Python Forum
Are there programs that convert .ui files to .py for you?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Are there programs that convert .ui files to .py for you?
#2
pyuic4 input.ui -o output.py

or

pyuic5 input.ui -o output.py

Quote:Options:
--version show program's version number and exit
-h, --help show this help message and exit
-p, --preview show a preview of the UI instead of generating code
-o FILE, --output=FILE
write generated code to FILE instead of stdout
-x, --execute generate extra code to test and display the class
-d, --debug show debug output
-i N, --indent=N set indent width to N spaces, tab if N is 0 [default:
4]

Code generation options:
--import-from=PACKAGE
generate imports of pyrcc5 generated modules in the
style 'from PACKAGE import ...'
--from-imports the equivalent of '--import-from=.'
--resource-suffix=SUFFIX
append SUFFIX to the basename of resource files
[default: _rc]
Reply


Messages In This Thread
RE: Are there programs that convert .ui files to .py for you? - by Axel_Erfurt - Sep-02-2019, 09:58 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020