Questions tagged [pyuic]

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.

99 questions
0
votes
1 answer

Troubles using pyuic5

I had python 3.8.5 installed on my machine, and I have pyuic5 installed and used it to convert .ui to .py files (using cmd). I recently upgraded to python 3.8.7, and whenever I try to convert now, I get this error: C:\Users\....>pyuic5 -x Windows.ui…
Ahmed Zeid
  • 31
  • 5
0
votes
1 answer

'pyuic5' is not recognized as an internal or external command, operable program or batch file

I am a beginner in making GUI by python_pyqt5. I can't convert the UI file into a py file, whenever I try to convert I get this message from CMD: pyuic5` is not recognized as an internal or external command, operable program or batch file. I search…
mahmoud
  • 1
  • 2
0
votes
0 answers

I tried to use this cmd `pyuic5` but it gave can't recognize

I have been trying to do PyQt5 designs, but when I want to transform it into .py file I can't. The pyuic5 error is always there in the cmd but when i try to use this command in the Pycharm terminal it works fine, I just need to change file directory…
Paties
  • 47
  • 11
0
votes
1 answer

Formatting issue when converting from .ui file to .py file in windows

When converting a .ui file to .py using: pyuic5 code.ui -o code.py, Upon running the .py file in JetBrains PyCharm Community Edition, the GUI window changes from what is previewed in Qt Designer and clips out the text of the push button as seen in…
JKEL
  • 3
  • 5
0
votes
0 answers

Is not recognized as an internal or external command eror using pyuic

I created a .ui file. I have been trying to convert it to .py file using pyuic (i don't have Anaconda) I am sure that I have pyuic.bat and it's directory is D:\Python35\Lib\site-packages\PyQt5 Then I open the directory of my .ui file. and i write…
beyblade41
  • 85
  • 1
  • 8
0
votes
1 answer

Python: access instance attribute from another file

Assume that I have generated a gui.py file using the pyuic5 command from a gui.ui file. I'm looking for a way to move the main class (Ui_MainWindow) methods to another file named func.py without any structural changes to the main class. Here I have…
Ash
  • 263
  • 3
  • 14
0
votes
0 answers

Converting QtCreator UI file containing custom plugins to .py via PyQt5

I have created a plugin which is a gauge. I used QQuickWidget to create the plugin. This is my plugin definition class and it works perfectly and will be added to QtCreator components: class QDESIGNER_WIDGET_EXPORT AnalogeGauge : public…
Mosi
  • 1,178
  • 2
  • 12
  • 30
0
votes
1 answer

Calling pyuic4 in a for loop to generate all py files | Calling .bat from python

I want to create a short script that loops over all .ui and .qrc files in a folder, and calls pyuic4 and pyrcc4 respectively for each file thus generating the corresponding .py files. EDIT months later after i learned more python: import…
Andrei M.
  • 313
  • 2
  • 10
0
votes
1 answer

How to use pyuic5 in Visual Studio 2017

I'm trying to figure out how to use this command: pyuic5 when I installed Python through Visual Studio 2017. Everywhere I try it doesn't work.
littlejiver
  • 255
  • 2
  • 13
0
votes
1 answer

How to hide a widget with pyuic5

Is there a way to hide a widget(in pyuic5). I've tried: self.playBtn.hide() which doesn't cause an error, but doesn't hide the widget. That was kind of a shot in the dark, and the documentation isn't providing too much info. Any help is…
dwib
  • 583
  • 4
  • 19
0
votes
0 answers

pyqt5.qtcore and pyqt4.qtcore modules both wrap the qobject class

I developed a GUI application using qtcreator and converted to python script using pyuic5. pyuic5 -x app.ui -o app.py Then I imported the main ui as from app import Ui_Rplatform as rp Then I got error on the import line from app import…
batuman
  • 7,066
  • 26
  • 107
  • 229
0
votes
1 answer

launch pyuic5 with subprocess.Popen

I am trying to call pyuic5 with subprocess.Popen to convert qt5 .ui files to python from within a python script on Windows. command = "pyuic5 -x " + filein + " -o " + fileout process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=None,…
MisterTea
  • 21
  • 1
  • 9
0
votes
0 answers

Conversion from .ui to .py in python 3 on windows platform

I am trying to convert .ui file generated from Qt designer to .py file using PyQt5 (pyuic5.bat) It is throwing DLL missing error from PyQt5 import QtCore Traceback (most recent call last): File "C:\Python36\lib\runpy.py", line 193, in…
drama
  • 23
  • 1
  • 8
0
votes
0 answers

Issue while converting .ui to .py on PyQt5

while converting .ui to .py using cmd command pyuic5 -x file.ui -o file.py an error occurs stating there is no pyuic batch file in internal and external PS-couldn't find pyuic.exe anywhere in the scripts folder I have installed the pyqt5 using…
0
votes
0 answers

pyuic5 creates a python file with syntax errors

I am using QtDesigner 5.5.1 to build a simple GUI and I want to convert the .ui file into an executable .py file. I ran: pyuic5 -x interface.ui -o interface.py chmod +x interface.py My script is: # -*- coding: utf-8 -*- # Form implementation…
Qubix
  • 4,161
  • 7
  • 36
  • 73