def show_connection_error_dialogue(self): self.dialogue = Dialogue( name='ConnectionErrorDialogue', parent=self.main, align=uiconst.CENTER, width=450, height=150, messageText=localization.GetByLabel( 'UI/ProjectDiscovery/ConnectionErrorDialogueMessage'), messageHeaderText=localization.GetByLabel( 'UI/ProjectDiscovery/ConnectionErrorDialogueHeader'), label=localization.GetByLabel( 'UI/ProjectDiscovery/NotificationHeader'), buttonLabel=localization.GetByLabel( 'UI/ProjectDiscovery/CloseProjectDiscoveryButtonLabel'), onCloseEvent=Events.CloseWindow)
def open_too_many_categories_selected_dialogue(self): self.disable_ui() self.dialogue = Dialogue( name='ErrorDialogue', parent=self.dialogue_container, align=uiconst.CENTER, width=450, height=215, messageText=localization.GetByLabel( 'UI/ProjectDiscovery/TooManyCategoriesMessage'), messageHeaderText=localization.GetByLabel( 'UI/ProjectDiscovery/TooManyCategoriesHeader'), label=localization.GetByLabel( 'UI/ProjectDiscovery/NotificationHeader'), buttonLabel=localization.GetByLabel( 'UI/ProjectDiscovery/ErrorButton'), toHide=self)
def show_greeting_dialogue(self): self.disable_ui() Dialogue( name='greetingDialogue', parent=self.dialogue_container, align=uiconst.CENTER, width=450, height=340, messageText=localization.GetByLabel( 'UI/ProjectDiscovery/Subcellular/Tutorial/GreetingText'), messageHeaderText=localization.GetByLabel( 'UI/ProjectDiscovery/Subcellular/Tutorial/GreetingHeader'), label=localization.GetByLabel( 'UI/ProjectDiscovery/Subcellular/Tutorial/GreetingLabel'), buttonLabel=localization.GetByLabel( 'UI/ProjectDiscovery/Subcellular/Tutorial/GreetingButton'), toHide=self, isTutorial=True)
def start(self, show_dialogue): if show_dialogue: self.disable_ui() Dialogue(name='finishedTutorialDialogue', parent=self.dialogue_container, align=uiconst.CENTER, width=450, height=330, messageText=localization.GetByLabel('UI/ProjectDiscovery/Subcellular/Tutorial/FinishedMessage'), messageHeaderText=localization.GetByLabel('UI/ProjectDiscovery/Subcellular/Tutorial/FinishedHeader'), label=localization.GetByLabel('UI/ProjectDiscovery/Subcellular/Tutorial/GreetingLabel'), buttonLabel=localization.GetByLabel('UI/ProjectDiscovery/ErrorButton'), toHide=self) uthread.new(self.get_new_task)
def open_task_retrieval_error_dialogue(self): self.disable_ui() self.dialogue = Dialogue(name='ErrorDialogue', parent=self.dialogue_container, align=uiconst.CENTER, width=450, height=215, messageText=localization.GetByLabel('UI/ProjectDiscovery/TaskRetrievalErrorMessage'), messageHeaderText=localization.GetByLabel('UI/ProjectDiscovery/TaskRetrievalErrorHeader'), label=localization.GetByLabel('UI/ProjectDiscovery/NotificationHeader'), buttonLabel=localization.GetByLabel('UI/ProjectDiscovery/ErrorButton'), toHide=self, onCloseEvent=const.Events.ResetAndGetNewTask)