Esempio n. 1
0
 def _stop(self):
     """
     Stop receiving messages from Qt, restoring the previously installed
     handler.
     """
     if qInstallMsgHandler:
         qInstallMsgHandler(self._previous_handler)
     else:
         assert qInstallMessageHandler
         qInstallMessageHandler(self._previous_handler)
Esempio n. 2
0
 def _stop(self):
     """
     Stop receiving messages from Qt, restoring the previously installed
     handler.
     """
     if qInstallMsgHandler:
         qInstallMsgHandler(self._previous_handler)
     else:
         assert qInstallMessageHandler
         qInstallMessageHandler(self._previous_handler)
Esempio n. 3
0
 def _start(self):
     """
     Start receiving messages from Qt.
     """
     if qInstallMsgHandler:
         previous_handler = qInstallMsgHandler(self._handle_no_context)
     else:
         assert qInstallMessageHandler
         previous_handler = qInstallMessageHandler(self._handle_with_context)
     self._previous_handler = previous_handler
Esempio n. 4
0
 def _start(self):
     """
     Start receiving messages from Qt.
     """
     if qInstallMsgHandler:
         previous_handler = qInstallMsgHandler(self._handle_no_context)
     else:
         assert qInstallMessageHandler
         previous_handler = qInstallMessageHandler(self._handle_with_context)
     self._previous_handler = previous_handler