Questions tagged as 'pyqt5'

1
answer

How to display an image from the web in a QMainWindow

I would like to know how I can show an image brought from a url destro del qmainwindow. this is the code: from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5 import uic from PyQt5.Qt import * impor...
asked by 16.07.2018 / 06:41
1
answer

Show time in QStatusBar

Good afternoon I am trying to show the time in a statusbar in pyqt. This is my code: from PyQt5.QtWidgets import QMainWindow,QApplication, QDesktopWidget,QLabel from PyQt5.QtCore import * from PyQt5 import uic from PyQt5 import QtCore import t...
asked by 14.07.2018 / 20:36
1
answer

Problem with eventFilter and Key_Return in a QDialog with buttons

I have the following code where I try to use eventFilter : class Ticket(QDialog): def __init__(self): QDialog.__init__(self) uic.loadUi("ticket.ui",self) self.D_Aceptar.clicked.connect(self.productos) #QPushB...
asked by 30.07.2018 / 20:00
1
answer

threads in PyQt - TypeError: function () missing 2 required positional arguments:

Good afternoon, I hope someone can help me with this error: The code is executed but it throws me an error: from PyQt5.QtWidgets import QMainWindow,QApplication, QTableWidgetItem from PyQt5 import uic import firebase_admin from firebase_admin...
asked by 20.07.2018 / 07:52
1
answer

Event hover in pyqt5

I would like to know how I can generate a Hover event in the bclose button of the following code so that when the mouse is over it changes its color, for example: This is my code: import sys from PyQt5.QtWidgets import * from PyQt5.QtGui...
asked by 20.03.2018 / 05:10
1
answer

Calendar within QLineEdit

I have a question about PyQt5. I try to have a date input, so that the user presses a box and opens a calendar to select the date. In some places I have read about the code setCalendarPopup(true) , but I have not been able to use it suc...
asked by 12.12.2017 / 03:53
1
answer

Help with QT designer and PyQt5 with the uic module

I have a problem trying to develop a GUI with PyQt5 and QT desginer. I want to use the uic module, I have a .ui file called registro.ui , and another login.ui , how can I call from login.ui to window registro.ui...
asked by 20.04.2017 / 06:57
0
answers

How to calculate the percentage in a Python calculator with the eval function?

I have written a calculator in python with PyQt5 and so far all the operations are performed correctly minus the percentage, for the evaluation of data I use eval, I appreciate your help. The code used is the following: import sys, math from...
asked by 04.09.2018 / 06:41
1
answer

Add resize event to a qwidget pyqt5

I have the following problem: I am designing a user interface for a program, however I did not use a main window since I did not find a way to reduce the size of the qstatusbar So I'm doing it on a qwidget, the problem is that by removing...
asked by 30.06.2018 / 18:20
1
answer

pyqt5 does not center the window

Good afternoon I'm trying to center my app with the following code: from PyQt5.QtWidgets import QMainWindow,QApplication,QDialog, QDesktopWidget from PyQt5 import uic, QtCore, QtWidgets from PyQt5.QtGui import * from PyQt5.QtCore import * fro...
asked by 01.07.2018 / 23:32