コード例 #1
0
    def enterEvent(self, event):
        """
        Start playing the image sequence when the mouse enters the widget.

        :type event: QtCore.QEvent
        :rtype: None
        """
        self._imageSequence.start()
        studioqt.fadeIn(self._toolBar, duration=300)
コード例 #2
0
    def enterEvent(self, event):
        """
        Start playing the image sequence when the mouse enters the widget.

        :type event: QtCore.QEvent
        :rtype: None
        """
        self._imageSequence.start()
        studioqt.fadeIn(self._toolBar, duration=300)
コード例 #3
0
    def show(self):
        """
        Overriding this method to start the timer to hide the toast.

        :rtype: None
        """
        duration = self.duration()

        self._timer.stop()
        self._timer.start(duration)

        if not self.isVisible():
            # Fade in will reset the alpha effect back to 1.
            studioqt.fadeIn(self, duration=0)
            QtWidgets.QLabel.show(self)
コード例 #4
0
ファイル: lightbox.py プロジェクト: richardssam/studiolibrary
    def fadeIn(self, duration=200):
        """
        Fade in the dialog using the opacity effect.

        :type duration: int 
        :rtype: QtCore.QPropertyAnimation 
        """
        self._animation = studioqt.fadeIn(self, duration=duration)
        return self._animation