Questions tagged as 'pyqt'

2
answers

I apply setText to a Qlabel of PyQt4 in Python and it does not modify the text in the tag but it is superimposed on the change

When I run the code a MainWindow appears in which there are two radioButtons, if I press either of the two, a container widget will be added and displayed in the main window, in it there will be several objects of which I care about the present...
asked by 03.07.2016 / 17:36
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
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
1
answer

Delete rows and send text to an item in a QTableWidget

I have a problem trying to send a text to an item in a tablewidget. This is the code I use: from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5 import uic from PyQt5.Qt import * class Principal(Q...
asked by 15.07.2018 / 23:32
1
answer

How to update the delegate of a QTableView from a Thread

I would like to know if you know how to update a progress bar, which is drawn using a Delegate, the class is called QAbstractItemDelegate, this class was overwritten to draw a QWidget in a specific QProgressBar progress bar, use a QMainWindow as...
asked by 25.11.2017 / 05:28
1
answer

call a code with a button in Pyqt

I'm working with Pyqt and I have my window with 3 buttons. The first and second buttons I want to give them shares. The actions that I need is that they initiate other codes.   link There are both programs. Pantalla.py is the pyqt and I need th...
asked by 02.11.2017 / 18:13
0
answers

Converting .ui to .py from PyQt4 for Python 2.7 generates me error

This is the error that leaves me when I try to convert it. I have searched the Internet, but I can not find any solution to my problem. I am learning to work with PyQt and if I do not convert it I can not move forward. If someone can help me, I'...
asked by 13.09.2018 / 22:34
0
answers

QSpinBox range assignment

I have to define a QSPINBOX in pyqt, where the values taken by the QSPINBOX each time the ValueChanged () signal returns is that of a defined vector. For example: vector = [10, 15, 3, 20] In other words, the QSPINBOX in this case...
asked by 28.08.2018 / 16:18
0
answers

Open a temporary excel in python

I have been looking for how to open an excel but I have only found how to open an excel already created: os.system('start excel.exe "%s\file.xls"' % (sys.path[0], )) What I'm doing is a "Do you want to open or save the excel?" window, but f...
asked by 23.08.2018 / 14:41
1
answer

Proplema with layout: Widget does not resize with the window

I have a Dialog with a unique Wigdet that occupies the entire window. In this case it is a QTextEdit and is created with Qt Designer . This is the file in Python : from PyQt4 import QtCore, QtGui try:...
asked by 20.06.2018 / 14:33