Exemple #1
0
 def _error(self, msg):
     locker = QMutexLocker(self._mutex)
     
     msg = projex.text.nativestring(msg)
     self.moveCursor(QTextCursor.End)
     self.setCurrentMode(logging.ERROR)
     self.insertPlainText(msg)
     self.scrollToEnd()
     
     if not self._waitingForInput:
         self._waitingForInput = True
         QTimer.singleShot(50, self.waitForInput)
Exemple #2
0
    def _error(self, msg):
        locker = QMutexLocker(self._mutex)

        msg = projex.text.nativestring(msg)
        self.moveCursor(QTextCursor.End)
        self.setCurrentMode(logging.ERROR)
        self.insertPlainText(msg)
        self.scrollToEnd()

        if not self._waitingForInput:
            self._waitingForInput = True
            QTimer.singleShot(50, self.waitForInput)
Exemple #3
0
    def hideEvent(self, event):
        """
        Sets the visible state for this widget.  If it is the first time this
        widget will be visible, the initialized signal will be emitted.
        
        :param      state | <bool>
        """
        super(XView, self).hideEvent(event)

        # record the visible state for this widget to be separate of Qt's
        # system to know if this view WILL be visible or not once the
        # system is done processing.  This will affect how signals are
        # validated as part of the visible slot delegation
        self._visibleState = False

        if not self.signalsBlocked():
            self.visibleStateChanged.emit(False)
            QTimer.singleShot(0, self.hidden)
Exemple #4
0
 def hideEvent(self, event):
     """
     Sets the visible state for this widget.  If it is the first time this
     widget will be visible, the initialized signal will be emitted.
     
     :param      state | <bool>
     """
     super(XView, self).hideEvent(event)
     
     # record the visible state for this widget to be separate of Qt's
     # system to know if this view WILL be visible or not once the 
     # system is done processing.  This will affect how signals are
     # validated as part of the visible slot delegation
     self._visibleState = False
     
     if not self.signalsBlocked():
         self.visibleStateChanged.emit(False)
         QTimer.singleShot(0, self.hidden)