123456789101112131415161718192021222324252627282930313233 |
- from PySide6.QtWidgets import *
- from PySide6.QtCore import *
- from PySide6.QtGui import *
- import settings
- class MineMainWindow(QMainWindow):
- def checkLogin(self):
- """检查是否登录"""
- if not settings.IsLogin:
- # self.PlayErrorAudio()
- QMessageBox.critical(self, "警告", "请先登录账号", QMessageBox.Ok)
- return False
- return True
- def checkMods(self,mods):
- """检查是否有权限"""
- if not mods:
- a = QMessageBox.question(self, '确认', '无抠图软件权限,请联系管理员',
- QMessageBox.Yes)
- return False
- return True
- def WaringMessage(self, message):
- """警告弹窗"""
- # self.PlayErrorAudio()
- return QMessageBox.critical(self, "警告", message, QMessageBox.Ok)
- def comfirmMessage(self, message):
- questResult = QMessageBox.question(
- self, "确认", message, QMessageBox.Yes | QMessageBox.No
- )
- return questResult
|