[英]PyQt: How to create a simple information at programm-start that shutdown automatically
for a pyqt-program I want to create a simple information message for the program-start. 对于pyqt程序,我想为程序启动创建一条简单的信息消息。 The key is, that it should disappear automatically after a few seconds.
关键是,它应该在几秒钟后自动消失。
I tried to use a singleshot, but it didn't work: 我尝试使用单张照片,但没有成功:
class MainProgramm(QMainWindow):
def __init__(self, *args):
QWidget.__init__(self, *args)
QTimer.singleShot(60, self.EntryMessage)
...
def EntryMessage(self):
QMessageBox.information(self, "About","text")
Can anybody help? 有人可以帮忙吗?
If I've understood you right, it seems like QSplashScreen is what you need. 如果我没看错 ,似乎您需要QSplashScreen 。 It's actually a part of Qt, so you can use it without any limitations.
它实际上是Qt的一部分,因此您可以不受限制地使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.