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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 4
0
    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