A command-line tool included with PyQt. It converts Qt Designer files into python modules, and is equivalent to Qt's uic command-line tool.
Questions tagged [pyuic]
99 questions
0
votes
0 answers
Used pyuic 5, but can't see text on output
I ran this on command prompt to turn the file from QT designer file to a .py file. All the buttons have worked, but none of the text shows up (i.e. labels for the radio buttons / words on the buttons / general labels):
C:\Users\Finn>pyuic5 -x…

Forrest
- 1
- 2
0
votes
1 answer
PyQt5 file missing (PyQt noob)
I have a study assignment due that requires me to convert a *.ui file from Qt into a *.py file using the command prompt.
However I have been struggling because I can not find the Pyuic5/4 module used to convert a *.ui file into a *.py file.
{I have…

DS7
- 165
- 2
- 8
0
votes
1 answer
Qt Designer .ui to .py conversion doesn't support on currentindexchange event for combobox
I am working on QT Designer for the first time. I have created a combo box with IP address values in it a.b.c.d and p.q.r.s. I translated the .ui file created in QT Designer to .py file using pyuic4 tool, so that it can be used in Python project…

Tanu Jain
- 107
- 1
- 3
- 11
0
votes
1 answer
Pyuic5 generates python files with invalid imports
While using PyQt5 in a project, I convert some .ui files tp .py files using pyuic5 -x design.ui -o design_ui.py. In the generated python file, there is this import statement: from ktreewidgetsearchline import KTreeWidgetSearchLine, which Python…

cLupus
- 535
- 6
- 16
0
votes
1 answer
Using C++, how can I run a python file in Qt Designer?
I've finally decided to make the transition from WxPython to QT! I'm using Qt Designer5.9, but I'm having issues placing a new slot. My goal is to press a button on the GUI and have a function run that I have written in another python program.
In Qt…

RknRobin
- 391
- 2
- 6
- 21
0
votes
1 answer
Python PyQt4 .setText refusing variables?
I would say I'm fairly decent with Python, but creating GUIs is a new concept for me. I've used Qt Creator to format the GUI and pyuic to convert the code from the file.ui.
I have most of the GUI coded, but I'm having this problem updating the text…

datguy.dev
- 31
- 1
- 5
0
votes
2 answers
pyuic5 backward compatibility
Is there some sort of backward compatibility with the pyuic5 shell command?
I updated to pyQt5 a while ago, but I have a few projects running with pyQt4 on a separate python 3.4 environment. Unfortunately the pyuic4 shell command is now…

MisterTea
- 21
- 1
- 9
0
votes
0 answers
PyInstaller/ Make onefile with other scripts incorporate in it
I have my main program and he needs 2 python scripts and a xml file to run. When i use pyinstaller i make an executable file but he don't work because he needs that 2 python scripts and xml file. When i add them to the path of executable,the…

Faza C
- 13
- 2
0
votes
1 answer
converting .ui files to .py file. No .py file is generated
i have been using qtdesigner with pyqt4 and python3.4. I was able to convert .ui files to .py files by using:
C:/Python34/Lib/site-packages/PyQt4/pyuic4.bat -x myfile.ui -o myfile.py
But now it has stopped working!!
The .py file is never…
0
votes
0 answers
python launchers (.exe) from \script fails
I'm trying to convert QT .ui file into .py file.
Found several issues saying ".exe's won't run from a directory with spaces".
I was struggling with the same issue, and found that there were multiple copies of .exe file on my…

Sanghyun Baek
- 19
- 5
0
votes
1 answer
How to show os.system() in textEdit in pyqt4
I use QtDesigner and pyqt4 for design my application.
I want to show os.system() function results in textEdit!
here is my code:
def aiaa(self):
import os
ss = os.system("systemctl status tor.service")
self.textEdit.setText(str(ss))
def…

amirrezaw
- 1
- 1
0
votes
1 answer
How to resolve No or missing module errors when converting to an executable using pyinstaller -Python
I am attempting to convert a python file to an executable file. Easy enough right?
I used pyinstaller on a simple program that doesn't import anything. It worked like a charm. Then, I tried it with another dummy program with imported modules,…

Korbaine
- 49
- 4
0
votes
0 answers
pyuic4 import QtCore DLL failed error
I am trying to convert a ui file to a py file using pyuic4. I keep getting errors. I have tried several answers including writing the command diffrently and checking to make sure I am running PyQt and Python both x64. Also I am in the directory…

cdbean04
- 57
- 1
- 8
0
votes
0 answers
Loading QT Designer Files in PyQT
I'm having extreme difficulty getting my .py GUI file exported with pyuic to execute as it should.
At the moment, despite playing with all the variables I can think of, I keep getting errors along the lines of: NameError: name 'QMainWindow' is not…

Adam_ABC
- 129
- 1
- 2
- 8
0
votes
0 answers
Using .UI Files in Mac App Bundles (PyQt5)
I'm using .ui files (from Qt Designer) with Python 3.4 and PyQt5. It works fine if I run it from source, but when I try to use py2app to compile my program into a Mac app package, the program crashes with a big long exception list…

Meorge
- 83
- 1
- 1
- 12