Questions tagged as 'pyqt'

1
answer

Make a pushButton close a Qdialog

Clicking on QPushButton gives the following error: Traceback (most recent call last): File "listageneral.py", line 59, in adios self.close() AttributeError: 'Ui_Dialog' object has no attribute 'close' This is the code: impo...
asked by 05.10.2017 / 19:48
1
answer

Make it change QLabel

I am practicing with PyQt and I have done an exercise that prints on the console which button I press, then I wanted to change it so that it appears in QLabel , pro gives me an error    File "call.pyw", line 30, in b1_clicked    ...
asked by 06.10.2017 / 17:46
0
answers

Use PyQt5 with Qgis 2.99 in Windows

I want to be able to program in Qdesigner, therefore I install PyQt5, GIS applications, importing QGIS 2.99 in PyQt to be able to use Qgis I read a lot because I can not do the import of Qgis in python 3.5    Operating System: Windows 7 -...
asked by 22.09.2017 / 14:01
1
answer

Group widgets vertically and horizontally in a layout

I'm doing a framework in python and Qt, and I have a question. Let's see if with some help I can solve it. My question is this: when making a layout I want some buttons to form a vertical layout and others a horizontal layout, so the screen w...
asked by 28.07.2017 / 11:23
1
answer

How can I integrate Pygame and PyQt4?

I'm using Python 2.7 and Ubuntu 14.04. I find myself trying to this to insert my pygame window into my PyQt4 window.    On some platforms it is possible to embed the pygame display in an existing window. To do this, the environment vari...
asked by 09.07.2016 / 20:07
1
answer

Modify text in QLineEdit when modifying the value of an instance variable / attribute

I'm trying to send the value of QLineEdit from one module to another in another module at the press of a button, but it does not work (just do not change the text in the second QLineEdit ). This is my code: Module1 from Py...
asked by 13.08.2018 / 06:34
1
answer

My code does not return the actual value of the QWidget

Good evening I have the following code: The error that occurs to me is that when I print the size of self.widget.width() I get the value of 100 while in the QT Designer I show that the value is 450 The second error is that when you pas...
asked by 22.09.2018 / 07:34
1
answer

Why the variable does not change the value

I have the following code where I initialize three variables g_turno , g_sucursal , g_fecha with any value. These variables should change their value respectively when the following signals are activated: self.turno_1.cur...
asked by 03.09.2018 / 18:47
1
answer

Error pressing QPushButton

Dear I have a small application in pyqt5 and QT DESIGNER. The application works well only when you run the "clean" button the application stops working. I leave the code to see if someone can help me where the error is generated....
asked by 23.12.2017 / 02:08
2
answers

How to list the widgets correctly within a QLayout

Dear, I come before you with a problem that is currently bothering me. I'm trying to create a custom calendar in Qt, since the QCalendarWidget can not be modified or stylized, I'm doing my own. The problem is when I try to connect the d...
asked by 26.01.2017 / 14:51