Questions tagged as 'pyqt5'

0
answers

Convert .ui to .py Generates Error [closed]

I have tried to generate a python script with PyQt5 but when trying to convert it I get an error: Now check the PATH to confirm that the environment variable is there, also try to change from version of python to version 3.3, 3.6 and it...
asked by 03.02.2018 / 18:48
0
answers

How to install and use PyQt5 in Windows? (configure.py, Error)

I want to use the PyQt5 in Windows, I was searching and found a .zip file from the official PyQt page, which tells me how to install the file configure.py in Windows, but when executing the file I get the following error:    Error:...
asked by 30.06.2017 / 20:55
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

Insert data in comboBox

I have the following code, the result of the cursor returns the correct data, the problem that the comboBox does not show, is the correct way to fill it? print([str(x[0]) for x in cursorUsuario])    ['1', '4', '5', '6', '9'] self.dlg.com...
asked by 16.08.2018 / 00:57
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
1
answer

send value to a Qwidget from a different Python class

How can I change the value of a Qwidget from another class? Example: class Primera(QMainWindow): def __init__(self): QMainWindow.__init__(self) uic.loadUi('task.ui',self) self.label_1.setText('linea1') class Se...
asked by 31.07.2018 / 04:33
2
answers

Resize event Qdialog

I have the following problem I have 2 frames inside a qdialog but I need the frame to take the width () and height () properties as the size of the qdialog. This is what I tried self.frame.resize(self.QDialog.width(),self.height())...
asked by 01.07.2018 / 16:44
1
answer

Maximize and restore the window

I have the following code: from PyQt5.QtWidgets import QMainWindow,QApplication, QDesktopWidget from PyQt5.QtCore import * from PyQt5 import uic from PyQt5 import QtCore class Principal(QMainWindow): def __init__(self): QMainWind...
asked by 14.07.2018 / 06:17