def _force_exit_prompt(self): return MessageDialog.builder( {"text": "Force exit", "value": True, "focus": True}, {"text": "Return to app", "value": False}, wait=True, title="Exit Failure", message="An internal failure is preventing the app from exiting. Force exit?", parent=self, icon=MessageDialog.ICON_ERROR )
def save_prompt(self): return MessageDialog.builder( {"text": "Save", "value": True, "focus": True}, {"text": "Don't save", "value": False}, {"text": "Cancel", "value": None}, wait=True, title="Save design", message="This design has unsaved changes. Do you want to save them?", parent=self.studio, icon=MessageDialog.ICON_INFO )