コード例 #1
0
ファイル: main.py プロジェクト: actuarial-tools/camelot
 def initialization_exception(self, exception_info):
     """This method is called whenever an exception occurs before the event
     loop has been started, by default, this method pops up a message box to
     inform the user
     :param exception_info: a tuple (exception, traceback_print) where traceback_print
     is a string representation of the traceback
     """
     from camelot.view.controls import exception
     exception.model_thread_exception_message_box(exception_info)
コード例 #2
0
ファイル: main.py プロジェクト: kurtraschke/camelot
    def initialization_exception(self, exception_info):
        """This method is called whenever an exception occurs before the event
        loop has been started, by default, this method pops up a message box to
        inform the user
        :param exception_info: a tuple (exception, traceback_print) where traceback_print
        is a string representation of the traceback
        """
        from camelot.view.controls import exception

        exception.model_thread_exception_message_box(exception_info)
コード例 #3
0
ファイル: main.py プロジェクト: maurodoglio/Camelot
 def initialization_exception(self, exception_info):
     """This method is called whenever an exception occurs before the event
     loop has been started, or if the setup of the model thread failed.  By
     default this pops up a dialog.
     
     :param exception_info: a serialized form of the exception
     """
     from camelot.view.controls import exception
     if self._splashscreen:
         self._splashscreen.hide()
     exception.model_thread_exception_message_box(exception_info)
コード例 #4
0
ファイル: main.py プロジェクト: jeroendierckx/Camelot
 def initialization_exception(self, exception_info):
     """This method is called whenever an exception occurs before the event
     loop has been started, or if the setup of the model thread failed.  By
     default this pops up a dialog.
     
     :param exception_info: a serialized form of the exception
     """
     from camelot.view.controls import exception
     if self._splashscreen:
         self._splashscreen.hide()
     exception.model_thread_exception_message_box(exception_info)
コード例 #5
0
ファイル: main.py プロジェクト: kurtraschke/camelot
    def setup_exception(self, exc_name, exc_trace):
        """This slot will be called when the setup of the model thread fails, eg
        in case of database connection failure"""
        from camelot.view.controls.exception import model_thread_exception_message_box

        model_thread_exception_message_box((exc_name, exc_trace))
コード例 #6
0
 def exception(self, args):
     self.finished()
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(args)
コード例 #7
0
ファイル: progress_page.py プロジェクト: kurtraschke/camelot
 def exception(self, args):
     self.finished()
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(args)
コード例 #8
0
 def exception(self, exception_info):
     """Handle an exception raised by the generator"""
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(exception_info)
     self.exit()
コード例 #9
0
ファイル: progress_dialog.py プロジェクト: Governa/Camelot
 def exception(self, exception_info):
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(exception_info)
     self.finished(False)
コード例 #10
0
ファイル: action_runner.py プロジェクト: Governa/Camelot
 def exception( self, exception_info ):
     """Handle an exception raised by the generator"""
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box( exception_info )
     self.exit()
コード例 #11
0
 def exception(self, exception_info):
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(exception_info)
     self.finished(False)
コード例 #12
0
ファイル: main.py プロジェクト: actuarial-tools/camelot
 def setup_exception(self, exc_name, exc_trace):
     """This slot will be called when the setup of the model thread fails, eg
     in case of database connection failure"""
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box((exc_name, exc_trace))