from PyQt5.Qt import * import sys class Window(QWidget): def mousePressEvent(self, QMouseEvent): if self.isMaximized(): self.showNormal() else: self.showMaximized() app=QApplication(sys.argv) win=Window() win.resize(500,500) win.show() sys.exit(app.exec_())
PyQt5鼠标操作控制窗体
最新推荐文章于 2023-02-06 13:09:59 发布