qrainbowstyle.widgets.QtWaitingSpinner package

Submodules

qrainbowstyle.widgets.QtWaitingSpinner.designer module

qrainbowstyle.widgets.QtWaitingSpinner.pyqtspinner module

The MIT License (MIT)

Copyright (c) 2012-2014 Alexander Turkin Copyright (c) 2014 William Hallatt Copyright (c) 2015 Jacob Dawid Copyright (c) 2016 Luca Weiss Copyright (c) 2017 fbjorn Copyright (c) 2020 Wojciech Wentland

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

class qrainbowstyle.widgets.QtWaitingSpinner.pyqtspinner.WaitingSpinner(parent, centerOnParent=True, disableParentWhenSpinning=False, modality=0, roundness=100.0, fade=80.0, lines=20, line_length=10, line_width=2, radius=10, speed=1.5707963267948966)[source]

Bases: PyQt5.QtWidgets.QWidget

QtWaitingSpinner is a highly configurable, custom Qt widget for showing “waiting” or “loading” spinner icons in Qt applications, e.g. the spinners below are all QtWaitingSpinner widgets differing only in their configuration

Parameters
  • parent (QWidget) – Parent widget.

  • centerOnParent (bool) – Center on parent widget.

  • disableParentWhenSpinning (bool) – Disable parent widget when spinning.

  • modality (Qt.WindowModality) – Spinner modality.

  • roundness (float) – Lines roundness.

  • fade (float) – Spinner fade.

  • lines (int) – Lines count.

  • line_length (int) – Lines length.

  • line_width (int) – Lines width.

  • radius (int) – Spinner radius.

  • speed (float) – Spinner speed.

changeEvent(event: PyQt5.QtCore.QEvent)[source]

Change event handler.

Parameters

event (QEvent) – Event.

property color
currentLineColor(countDistance, totalNrOfLines, trailFadePerc, minOpacity, colorinput)[source]
fadeIn(time: int = 15)[source]
fadeOut(time: int = 15)[source]
property innerRadius
property isSpinning
lineCountDistanceFromPrimary(current, primary, totalNrOfLines)[source]
property lineLength
property lineWidth
property minimumTrailOpacity
property numberOfLines
paintEvent(self, QPaintEvent)[source]
property revolutionsPersSecond
rotate()[source]
property roundness
setColor(color=2)[source]
setInnerRadius(radius)[source]
setLineLength(length)[source]
setLineWidth(width)[source]
setMinimumTrailOpacity(minimumTrailOpacity)[source]
setNumberOfLines(lines)[source]
setRevolutionsPerSecond(revolutionsPerSecond)[source]
setRoundness(roundness)[source]
setTrailFadePercentage(trail)[source]
start()[source]
stop()[source]
stopFade()[source]
property trailFadePercentage
updatePosition()[source]
updateSize()[source]
updateTimer()[source]

Module contents