Posts by karlloss • 53 points
5 posts
-
0
votes1
answer31
viewsA: How do I set an event to run when the app ends in Pyqt5?
there is the event closeEvent which may help in this case, it is called when the user closes the window, see the example: from PyQt5.QtWidgets import * import sys class Test(QWidget): def…
-
1
votes1
answer61
viewsA: How to create an animation for a Graphicseffect property in Pyqt5?
Qpropertyanimation can be used in this case yes, see the example: import sys from PyQt5.QtCore import * from PyQt5.QtWidgets import * class Teste(QWidget): def __init__(self): super().__init__()…
-
0
votes1
answer59
viewsA: when trying to create a bank with flask_sqlalchemy Attributeerror: can’t set attribute
Two points you should understand, the first is that in your app settings SQLALCHEMY_DATABASE_URI should have 4 bars like this : 'sqlite:////test.db', second point in class All there must be an…
-
1
votes3
answers112
viewsA: In Python how to pass the self between 2 windows using modules
you are trying to change an attribute that does not exist in the class Configscreen; the attribute lblTest belongs to your ui in class Mainscreen. When you call the bell func1(self) in class…
-
0
votes1
answer52
viewsQ: Pyside2 error when using Qwidget.render() method, how to bypass?
I am having trouble printing a widget. When executing the code below an error is returned. #p é uma instancia QPrinter painter = QPainter(p) painter.setRenderHint(QPainter.HighQualityAntialiasing)…