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
1
vote
0 answers

Setting alignment on QtDesigner but software does not comply

I've been using QtDesigner for some time already but now I got a problem. For some widgets (a label and a groupbox) I set the alignment preferences and both in the QtDesigner and the preview screen I get what I wanted but when I run the code it does…
Eduardo
  • 631
  • 1
  • 12
  • 25
1
vote
1 answer

PyQt: error with converting to Qt Designer UI file to Python module

When I try to convert a ui file to py using this command: pyuic4 -o test.ui test.py it gives this error:
Itay Katsnelson
  • 69
  • 1
  • 2
  • 8
1
vote
0 answers

pyuic5 with python3.6 error

I'm trying to use the pyuic5 command in the terminal to convert a QT designer .ui file to a .py file. Here is the command: pyuic5 cone.ui -o cone.py The error I get is: /usr/local/bin/pyuic5: line 2: exec: python3.6: not found Here is the contents…
green.mango
  • 201
  • 1
  • 4
  • 9
1
vote
1 answer

C:/Program is not recognized ...related to pyuic5

I installed Anaconda3-4.2.0 on Windows 10 Pro. During the installation I selected Anaconda to set the Path variable. I created a small program using QT designer and saved it as hello.ui. I launched Windows command prompt and changed directory to…
Murchak
  • 183
  • 1
  • 3
  • 17
1
vote
2 answers

How to convert .ui to py in windows ?

I followed this link to convert .ui to .py using python in windows but its not working.I tried installing pyuic4 but its not working. Is there any tools or libraries in python for doing it? Please suggest .
NIKHIL PUNNOOSE
  • 129
  • 1
  • 6
1
vote
1 answer

AttributeError: 'dataAcquisition' object has no attribute 'gpioButton'

I'm trying to connect a push-button on my main window to open a new widget when I click it. But each time I run the program I get this error: AttributeError: 'dataAcquisition' object has no attribute 'gpioButton' I will be grateful if someone can…
M. Lagha
  • 59
  • 6
1
vote
2 answers

Using Qt Designer files in python script

I need to open a dialog from login.py, then if successful, the dialog will close and open a main-window from home.py. I need to do this with a file created by Qt Designer with pyuic4. In summary, I need to call login.py and home.py though…
1
vote
1 answer

PyQt: Running pyuic.py without command line

I am unable to use the command prompt due to security restrictions on my work PC and I am trying unsuccessfully to find a way to convert .ui files to .py without the pyuic4 batch file. I have found the uic/pyuic.py program but have been unsuccessful…
jffp
  • 31
  • 3
1
vote
2 answers

How to connect separate UI files created by Qt Designer?

I have created a GUI application in python using PyQt5. The steps are first I have created a ui file in Qt Designer. Then I converted that ui file into a py file using pyuic4 -o demo.ui -x demo.py in a terminal. After that I modify the py file to…
user3386599
  • 45
  • 2
  • 8
1
vote
0 answers

pyui4c VS import file.ui

Until now, I have been developing my GUIs by creating the user interface with QtDesigner, saving the file as file.ui and using pyuic4 to create the file.py. However, quite recently I have read that it is not necessary to create the file.py. I can…
codeKiller
  • 5,493
  • 17
  • 60
  • 115
1
vote
1 answer

New pyuic from PyQt makes displaced objects

Pyuic utility from new PyQt4 4.11.4 produces all layouts slightly displaced or compressed. That's how it initially looks in designer: An thats how it looks after pyuic makes *.py file: The reason is that new pyuic doesn't make setMargin(0) for all…
funnyp0ny
  • 298
  • 1
  • 12
1
vote
0 answers

pyuic error when converting .py from .ui

i'm fairly new to PyQt but not totally new to Python. I'm trying to develop a GUI using PyQt5 and Python 3.4. I was creating the interface with Qt and wanted to have an early draft of the Python script. To do that i used this command : pyuic5 -x…
guy16
  • 233
  • 2
  • 3
  • 16
1
vote
0 answers

Qt Designer 5 and pyuic5 place import statement incorrectly for promoted widgets

I'm using pyQt5 together with Qt Designer (v 5.2.1) and pyuic5 (v 5.2.1) to create a GUI. I've run into a snag: when attempting to use a custom widget via promoting the widget like so: everything generates as expected, except that the resulting…
mday299
  • 129
  • 1
  • 6
1
vote
1 answer

Unable to find module 'PyQt.uic.port_v3' when converting .ui to .py file

I'm stuck at the very first step of converting the .ui file created with QT Designer into a .py file. System details (all programs in PATH): Windows 8 Python 3.4.3-x32 Qt 5.4.1 x32 PyQT 5.4.1-Py3.4-Qt5.4.1-x32 PYTHONPATH is C:\python34 In a…
zandar
  • 11
  • 3
1
vote
1 answer

How to import UI from Qt Designer

I'm making a simple GUI that only includes a button. I decided to do it with PyQt Designer. I decided that the UI generated by the Designer will be in one file, and the rest will be in another module that will import the UI. The generated file by…
ohad987
  • 326
  • 2
  • 4
  • 15