Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 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)
Ejemplo n.º 5
0
 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)