Questions tagged as 'pyqt'

1
answer

PyQT - Switch between windows with StackedWidget

I divided the application into parts, but for now I just want it to work when I try to switch between windows (without creating a new one or closing it). I'm doing this with buttons. Open well without problems and start in the main menu, and...
asked by 07.03.2016 / 00:31
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
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

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
1
answer

keypressevent does not detect the enter key pyqt

A simple question I am trying to detect the enter key of my keyboard by pressing it but it does not work. this is the code I use: import sys from PyQt5.QtWidgets import QMainWindow, QApplication from PyQt5 import QtCore from PyQt5 import Qt...
asked by 21.03.2018 / 01:51
1
answer

Problem loading QTableWidget

I want to load the data of a table, the problem arises when I press the button it throws me the following error:    C: \ Users \ framework \ Downloads \ Python \ PyQt> python new.py   TypeError: loadData () takes 0 positional arguments but 2...
asked by 02.10.2017 / 15:22