October 27th, 2005, 02:45 AM
QT 4 and Python
Anyone lead me in the direction to find a tutorial on how to implement QT 4 made ".ui" files with python.
I can find many tutorials on how to use PyQT and hand write the gui, but how do I use QT 4 the application to generate GUIs and then implement these .ui files with my python code???
Any help is appreciated.
October 28th, 2005, 09:10 PM
October 28th, 2005, 09:22 PM
I don't believe that you can. I think that the only thing available to you is the Qt library.
October 31st, 2005, 11:49 AM
That would be so great! Anyone know of another language that this is possible with? I know that it is built for C, well maybe I should simply spend a weekend locked up in my house learning C.
Any comments? Help?
September 20th, 2013, 08:26 PM
compile the .ui file to .py
If you mean how to convert a .ui GUI file to a .py file, you can use a small compiler called 'pyuic4'. Download it (you'll have to Google it), and then
1) save your .ui file to a directory
2) go to the windows command line and go to that directory
3) type 'pyuic4 -x filename.ui -o filename.py'
there's your python file.
Hope that helps.