예제 #1
0
 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
 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
 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
 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
 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
 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))