Monday, September 18, 2017

[How To] Convert Qt Designer file.py to Python Code


Assuming input.ui is the file created in Qt Designer, output.py is the python code file name,

  1. open Terminal and cd to input.ui folder.
  2. Type pyuic4 -x input.ui -o output.py and hit Enter
  3. output.py gets created in same folder and run it from Python to get the UI window.





If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

[How To] Install PyQt4 and Qt Designer for Python 2


For Ubuntu:

Below is the command to install  PyQt4 and Qt Designer for Python 2

sudo apt-get install pyqt4-dev-tools qt4-designer







If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged