Questions tagged as 'pyqt5'

0
answers

This windows version does not support the required bluetooth api

I have a question, I package my files using cx_Frezee in python 3.6.2, and PyQt5.9 However, when executing the .exe file on another machine, I get the following error: Try repacking the file but now on the machine where I got the err...
asked by 15.08.2018 / 08:01
0
answers

The PyQt5 window closes

I just started learning PyQt5 and the following code shows no error but when I run it the window quickly opens and closes: import sys import pandas as pd import matplotlib.pyplot as plt from PyQt5 import uic, QtWidgets qtCreatorFile = "matpl...
asked by 17.08.2018 / 03:07
1
answer

Occupy the full width and height of the screen with a QTableWidget

I am trying to occupy all the width and height of my window with a QTable Widget for this I have: #Mi layout vboxLayout = QtWidgets.QVBoxLayout(self) self.mainLayout = QtWidgets.QGridLayout() vboxLayout.addLayout(self.mainLayout) vboxLayout...
asked by 14.08.2018 / 09:13
0
answers

cx_freeze, how to import specific classes of PyQt5 and not the entire library?

I'm using Cx_Freeze to create .exe files and be able to run on windows without installing the python interpreter. I use the following Script, setup.py: from cx_Freeze import setup, Executable base = None executables = [Executable("Gui.py", bas...
asked by 10.07.2018 / 02:48
0
answers

Apply stylesheet effect to menus of a qmenubar

I would like to know how I can apply a stylesheet effect to the menu buttons of a qmenubar in pyqt this is the code to change the properties of the QMenuBar: QMenuBar{ background-color: rgb(49,49,49); color: rgb(255,255,255); border: 1p...
asked by 11.07.2018 / 00:06
0
answers

how to make a QmainWindow with round edges PyQt5

I would like to know if I could create a QMainWindow with rounded edges: So far I've only tried: self.setStylesheet("border:1px solid;border-radius:2px") but it does not work and activate the TranslusentBackground, NoSystemBackground,...
asked by 05.07.2018 / 04:02
0
answers

python - 'QPushButton' object is not callable

Good evening I am starting a new project in python, but I have the following screen: I have worked with other projects and did not throw any error at this idea? NOTE:  the self.boton is in the .ui file and from there I call it     
asked by 26.06.2018 / 05:21
1
answer

I need to generate an event in Qlabel Pyqt5 python, it is that when I click on it I detect it and then I throw the coordinates

I load some images in a QLabel, I want to get it to detect the right click of the mouse and I throw the coordinates from PyQt5.QtGui import * import sys import copy sys.path.append('../') class Ui_MainWindow(object): def setupUi(self, Mai...
asked by 04.06.2018 / 00:31
0
answers

Optimize opening of a Python program

I find the following problem, I have the following code, but it takes a long time to open the first time, I would like to know if there is any way to optimize the code. Or something like that here I leave my code: The interface is in a sep...
asked by 10.05.2018 / 01:01
1
answer

How to connect slots in PyQt5 from another class

I have generated a file gen_Principal.py from Principal.ui and since it should not be modified I created another class MyClass to connect the signals and slots there. I want to open a window when I click on the menu. Currently...
asked by 10.05.2018 / 14:57