def showEvent(self, event): # 检查必要配置是否完成 if isConfigured('TAF'): self.setDate() self.changeMessageType() else: QTimer.singleShot(0, self.showConfigError)
def test_is_configured(): assert isConfigured('TAF') assert isConfigured('Trend') assert isConfigured('SIGMET')
def showEvent(self, event): if not isConfigured('Trend'): QTimer.singleShot(0, self.showConfigError)
def showEvent(self, event): # 检查必要配置是否完成 if isConfigured('SIGMET'): self.currentSegment.head.updateState() else: QTimer.singleShot(0, self.showConfigError)