main.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:StarCraft-Casting-Tool 作者: teampheenix 项目源码 文件源码
def closeEvent(self, event):
        """Close and clean up window."""
        try:
            try:
                if(self.mysubwindow1 and self.mysubwindow1.isVisible()):
                    self.mysubwindow1.close()
                if(self.mysubwindow2 and self.mysubwindow2.isVisible()):
                    self.mysubwindow2.close()
                if(self.mysubwindow3 and self.mysubwindow3.isVisible()):
                    self.mysubwindow3.close()
                if(self.mysubwindow4 and self.mysubwindow4.isVisible()):
                    self.mysubwindow4.close()
            finally:
                self.settings.setValue("geometry", self.saveGeometry())
                self.settings.setValue("windowState", self.saveState())
                self.controller.cleanUp()
                PyQt5.QtWidgets.QMainWindow.closeEvent(self, event)
                # event.accept()
        except Exception as e:
            module_logger.exception("message")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号