Проще говоря мне нужно что бы на экран медленно выводилось изображение или текст, если это возможно в PyQt5.
Помогите кто может.
Мой код:
from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
class Button(QPushButton):
mouseMoved = pyqtSignal()
def mouseMoveEvent(self, event):
self.mouseMoved.emit()
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.lbl = QtWidgets.QLabel(self)
self.pix = QtGui.QPixmap("img.png")
self.lbl.setPixmap(self.pix)
self.lbl.resize(250, 350)
self.lbl.move(470, 1000)
self.lbl.close()
self.btn = QPushButton(self)
self.btn.setMouseTracking(True);
self.btn.setText("Кнопка")
self.btn.setStyleSheet("background: pink; color: Black; border-radius: 34px;}")
self.btn.setFont(QtGui.QFont("Pusia-Bold.otf", 17, QtGui.QFont.Bold))
self.btn.resize(300, 150)
self.btn.move(430, 1550)
self.btn.clicked.connect(self.image)
self.show()
def image(self):
self.lbl.show()
app = QtWidgets.QApplication(sys.argv)
ex = MainWindow()
sys.exit(app.exec_())