Questions tagged as 'pyqt5'

2
answers

Reading data from the serial port hangs my GUI

I'm doing an access control application in Python. I have a window in PyQt5, which has a running clock and a connection to an Arduino, which is the one that will read a card through its corresponding NFC. The fact is that for the two tasks (c...
asked by 07.07.2018 / 21:56
1
answer

Perform operation when detecting the change in a QtableWidget item

I have a QTableWidget , of 3x5 in the item (5, 5) I do the sum of the number that enter inside the item (1,2) and (1,3). Currently I need the user to click on a update button to be able to perform the update but I would like to know i...
asked by 01.09.2018 / 20:42
1
answer

change the image the index of a stakedWidget using a QcomboBox

Good evening I have the following code: from PyQt5.QtWidgets import QMainWindow, QApplication from PyQt5 import uic from PyQt5.QtCore import Qt from tabla import tabla_style class Principal(QMainWindow): def __init__(self): QMainW...
asked by 02.09.2018 / 04:30
2
answers

Problem in assigning arrays in Python

Hello, I do not know if this question has already been answered, but my problem is this: When assigning a global variable to a local variable of a class, changing the value of the local variable also modifies the value of the global v...
asked by 06.08.2017 / 18:31
4
answers

How to install and use PyQt5 in Windows?

Good, download PyQt5 from your official website and in some videos I see that it brings an "executable" file called a designer. When downloading it does not bring said file, only a folder called so I do not know what to do with it, so how can I...
asked by 07.05.2017 / 03:33
1
answer

QFrame without mosaic and centered

I have the following code: from PyQt5 import QtCore, QtWidgets, uic from functools import partial class MainWindow(QtWidgets.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) uic.loa...
asked by 12.07.2018 / 19:32
1
answer

Delete a selected row in a QTableWidget

I have the following problem: I try to delete a selected row of a TableWidget but it does not work. This is the function I occupy: self.check.clicked.connect(lambda:self.tabla.selectedItems().clear()) And this is the complete code:...
asked by 17.07.2018 / 21:32
1
answer

key.pressEvent (), does not execute the indicated task

I would like to know how I can execute a function by pressing the enter key, in a specific widget. For this case, I am trying to execute a function at the moment of pressing enter in the qlineedit. but it does not answer this is the image of...
asked by 27.07.2018 / 05:59
1
answer

Validate field and do not close the form

I am working on a plugin for Qgis, in the form the user enters the data and one of them is the name of the file, so I validate the field and verify that the same name does not exist, the problem is that if there is a sample a message and the for...
asked by 07.08.2018 / 14:10
1
answer

QGridLayout to arrange the elements at the top of the screen

I am using QGridLayout in Pyqt5 to build a window in python. What I want to do is that the elements are not available to occupy the entire width and height of the window, but they are grouped in the upper area of the window. My code is: def __...
asked by 13.08.2018 / 13:30