def openCta(self): """打开CTA组件""" try: self.widgetDict['ctaM'].showMaximized() except KeyError: self.widgetDict['ctaM'] = CtaEngineManager(self.mainEngine.ctaEngine, self.eventEngine) self.widgetDict['ctaM'].showMaximized()
def openPriceDifferent(self): """打开CTA组件""" try: self.widgetDict['priceDifferentM'].showMaximized() except KeyError: # Radarwin self.widgetDict['priceDifferentM'] = CtaEngineManager(self.mainEngine.ctaEngine_2, self.eventEngine) self.widgetDict['priceDifferentM'].showMaximized()