Questions tagged as 'pyqt5'

0
answers

how to activate SizeGrip in QMainWindow

I would like to know how I can activate the SizeGrip in the qmainwindow, but without the status bar in the MainWindow. this is what I have done: from PyQt5.QtWidgets import QMainWindow,QApplication from PyQt5 import QtCore class Principa...
asked by 15.10.2018 / 18:26
1
answer

How to bring a window to the front again PyQt5

I have the following problem. I have a sale with a button whose function is to show a second window, but when I return to the first window the second window that was opened goes to the bottom of the first one and if I click again on the butto...
asked by 15.10.2018 / 06:43
1
answer

how to show .gif in QLabel Python

Good morning I would like to know if there is any way in which I can show a file.gif in a qlabel. Currently I've only tried this: from PyQt5.QtWidgets import QMainWindow,QApplication,QLabel class Nueva(QMainWindow): def __init__(self...
asked by 16.10.2018 / 17:44
0
answers

Help with pandas merge inner

You can do me the favor of teaching me or telling me where to look for how to do the following: I have two panda dataframes. The first is constant and the second is generated from an Excel that always has variable data. The data in column "0"...
asked by 26.09.2018 / 18:15
1
answer

Using PYQT5 When clicking on Label The function is not executed

Generate a clcik action to a Label with an associated pixmap, when clicking on the label, only visualize the QMessageBox that you put as a reference, the function that changes the color to the pixmap does nothing. I leave the code and hopefully...
asked by 12.09.2018 / 22:32
1
answer

Add list to ComboBox

When I try to add lstSection to the ComboBox, I have the following error.    Error: addItem (self, str, userData: Any = None): argument 1 has   unexpected type 'list' addItem (self, QIcon, str, userData: Any =   None): argument 1 has unexpect...
asked by 07.09.2018 / 14:16
0
answers

Return the excel writer

I have a window to open or save an excel and what I pretend is that when I save the excel this modal I return the content of the excel, that is, the writer to be able to add modifications to that excel. My code is as follows: import pandas as...
asked by 05.09.2018 / 09:18
1
answer

How to adjust the width of a table header and sort the rows

I have the following code to build a result table in Pyqt: def Tabla(self): #Boton de exportar a excel self.toolButton = QtWidgets.QToolButton() #self.toolButton.setGeometry(QtCore.QRect(30, 190, 41, 31)) icon1 = QtGui.QIco...
asked by 20.08.2018 / 09:39
0
answers

Define several vBoxLayout within the same window

I have defined a vBoxLayout so that the upper elements of the window remain in the upper zone. Now, I have created a new vBoxLayout (without success) so that the table occupies the entire height of the window and there is no space left:...
asked by 21.08.2018 / 14:49
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