Questions tagged as 'pyqt'

1
answer

How to show a graph with pygal in QMainWindow

I'm trying to show a graph x in a QMainWindow using pygal however the graph is not shown, this is the code I'm using from PyQt5.QtWidgets import QMainWindow,QApplication from PyQt5.QtCore import QDate import pygal class Principal(QMainWindo...
asked by 07.09.2018 / 04:51
1
answer

Associate an event double click on a QTableWidget to a slot and get the row

I am trying to double-click on the row of a table to call the method and know which row it is. I tried to do: def Tabla(self): #Boton de exportar a excel toolButton = QtWidgets.QToolButton() icon1 = QtGui.QIcon() icon1.addPixma...
asked by 23.08.2018 / 11:16
2
answers

Why does grid layout only show me one button?

I'm trying to interface with PyQt5. I have copied an example of the internet where it shows how to make a grid and add widgets, but when I add 3 buttons it only shows me 1. What am I doing wrong? This is the code: import sys from PyQt5 impo...
asked by 26.07.2018 / 11:10
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

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

Assign the path of a file to a variable and then use it in FFmpeg

I'm trying to make a program in Python and PyQt for video encoding and I have a problem. I do not know how to get a variable with the path of a file and then send it to FFmpeg . I have built a basic window with three buttons, one to c...
asked by 01.05.2017 / 19:01
1
answer

Launch window when the process ends in ffmpeg. PyQt

In Python, PyQt and ffmpeg: I need to learn how to make a window appear with the typical message: "The process has finished" That window has to appear when the ffmpeg process ends. Ffmpeg launched it with subprocess. I can not know how to execut...
asked by 10.05.2017 / 17:57
0
answers

how to modify the tabwidget so that it has two rows instead of scrollbuttons?

I want my window to look like this and not like this     
asked by 02.11.2018 / 17:23
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