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
7
votes
2 answers

Customize pyuic's resource import statement?

When I use this command on windows: python -m PyQt4.uic.pyuic user_interface.ui -o user_interface.py After that, I add a resource: pyrcc4.exe -py3 images.qrc -o images.py And I end up with two beautiful files, user_interface.py, and images.py. The…
mesafria
  • 311
  • 2
  • 10
7
votes
4 answers

'Pyuic4' is not recognized as an internal external command

Im trying to compile a ui file by using Pyuic, but i can't get it to work... Every time i try using the command pyuic4 -o OutFile_ui.py InFile.ui it just givet me this error C:\Windows\system32>pyuic4 'pyuic4' is not recognized as an internal …
RasmusGP
  • 4,696
  • 5
  • 21
  • 28
7
votes
2 answers

Change QLabel text dynamically in PyQt4

My question is: how can I change the text in a label? The label is inside a layout, but setText() does not seem to work - maybe I am not doing it right. Here is my code: this is the Main windows GUI, the one Qt-Designer gives: class…
n3rio
  • 87
  • 1
  • 1
  • 6
7
votes
2 answers

How to create new PyQt4 windows from an existing window?

I've been trying to call a new window from an existing one using python3 and Qt4. I've created two windows using Qt Designer (the main application and another one), and I've converted the .ui files generated by Qt Designer into .py scripts - but I…
6
votes
1 answer

Why is PyQt executing my actions three times?

I'm still kind of new to PyQt but I really have no idea why this is happening. I have a Mainwindow that I create like this: class MainWindow(QtGui.QMainWindow): #initialize def __init__(self): #Call parent constructor …
SketchyManDan
  • 176
  • 1
  • 10
5
votes
1 answer

Accessing GUI elements from outside GUI class in PyQt

Note : I've already read this post and I didn't understand it unfortunately. I've got a directory settings somewhat like this : Main_Folder |_ Base_Gui_File.py |_ Child_directory (a directory inside Main_Folder) |_ __init__.py |_…
Xonshiz
  • 1,307
  • 2
  • 20
  • 48
5
votes
2 answers

PyQt: Wrapping Dialog from QDesigner and Connect pushbutton

I'm starting to learn Python and PyQt. Currently I am fighting with a very basic problem about connecting signals and Slots, with Dialog forms generated form QDesigner. I want to connect a pushbutton from a QDialog. The code does not generate an…
BerndGit
  • 1,530
  • 3
  • 18
  • 47
4
votes
1 answer

pyuic5 - Unknown C++ class: QfontDatabase

Used Qt Designer 5.9.5 to built a simple ui with a QFontComboBox. When I run pyuic5 it generates an error; pyuic5 demoFontComboBox.ui -o demoFontComboBox.py Unknown C++ class: QfontDatabase The .ui file is;
dipi
  • 128
  • 5
4
votes
9 answers

'pyuic5' is not recognized as an internal or external command

I am trying to convert ui file created by QTDesigner to py file. but i get the error: pyuic5 is not recognized as an internal or external command. I use anaconda 3, and tried all suggestions here: C:/Program is not recognized ...related to…
keramat
  • 4,328
  • 6
  • 25
  • 38
3
votes
1 answer

New-style Signal and Slot Support, PyQt

I'm writing a GUI application with PyQt4 (Python3). One my friend pointed out that using pyuic4 is a bad practice and referred me to uic module and Connecting Slots By Name features. He didn't have time to explain more and the references I have are…
Ekaterina Mishina
  • 1,633
  • 5
  • 20
  • 23
3
votes
2 answers

A error about pyuic4

I'm trying to transform my ui file to .py file, but when I run pyuic4 in the shell, I get an error: # pyuic4 main.ui > main_ui.py File "/usr/lib/python2.7/site-packages/PyQt4/uic/pyuic.py", line 2 exec /usr/bin/python…
kuntzuo
  • 43
  • 4
3
votes
2 answers

Benefits of using pyuic vs uic.loadUi

I am currently working with python and Qt which is kind of new for me coming from the C++ version and I realised that in the oficial documentation it says that an UI file can be loaded both from .ui or creating a python class and transforming the…
Juanjo
  • 79
  • 1
  • 8
3
votes
1 answer

Import custom widgets from .ui files in PyQt5

I want to use custom widgets created with QtCreator by importing directly the .ui file. Currently my code works fine when I use pyuic5 to create a .py file. But I want to be able to import my widgets directly from the .ui file. Some of the working…
Gwendal Grelier
  • 526
  • 1
  • 7
  • 21
3
votes
6 answers

Convert .ui file to .py file using Anaconda

Hi maybe this is a stupid question but I can't find the error or what should I do to do this... I have a .ui file with my GUI designed on QT Designer, and I want to use it with Python. I have installed Anaconda 2 (Python 2.7) and Python 3.6, but…
a.ras2002
  • 385
  • 2
  • 7
  • 21
3
votes
1 answer

Adding Functions to Buttons via Importing PyQt5 Ui

I have a PyQt5 Ui named guiNext.py and next.py which is refrencing the UI. How do I add function to the UI button? This is what I have and nothing happens when I run next.py and click on HELLO button. guiNext.py: # -*- coding: utf-8 -*- # Form…
Amin Persia
  • 315
  • 2
  • 15
1
2 3 4 5 6 7