赞
踩
https://i-blog.csdnimg.cn/blog_migrate/af1c3a6883304566c34f565350a06d6a.png
- from PyQt5.Qt import *
- import sys
- class MyQwidget(QWidget):
- def __init__(self):
- super().__init__()
-
- def showEvent(self, a0) -> None:
- print("窗口被展示出来",a0)
-
- def closeEvent(self,a0) -> bool:
- print("窗口被关闭了")
-
- def moveEvent(self, a0) -> None:
- print("窗口被移动了")
- def resizeEvent(self, a0) -> None:
- print("窗口改变了尺寸大小")
-
- def enterEvent(self, a0) -> None:
- print(

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。