Splash Screen (splashscreen)

A splash screen widget with support for positioning of the message text.

class orangecanvas.gui.splashscreen.SplashScreen(parent=None, pixmap=None, textRect=None, textFormat=0, **kwargs)[source]

Bases: PyQt5.QtWidgets.QSplashScreen

Splash screen widget.

Parameters
  • parent (QWidget) – Parent widget

  • pixmap (QPixmap) – Splash window pixmap.

  • textRect (QRect) – Bounding rectangle of the shown message on the widget.

  • textFormat (Qt.TextFormat) – How message text format should be interpreted.

setTextRect(rect: PyQt5.QtCore.QRect) None[source]

Set the rectangle (QRect) in which to show the message text.

textRect() PyQt5.QtCore.QRect[source]

Return the text message rectangle.

showEvent(self, a0: Optional[QShowEvent])[source]
drawContents(painter: PyQt5.QtGui.QPainter) None[source]

Reimplementation of drawContents to limit the drawing inside textRect.

showMessage(message: str, alignment: int = 1, color: Union[PyQt5.QtGui.QColor, PyQt5.QtCore.Qt.GlobalColor] = 2) None[source]

Show the message with color and alignment.

setPixmap(self, pixmap: QPixmap)[source]
event(self, e: Optional[QEvent]) bool[source]