Package moul :: Package qt :: Module simpleprogressbar :: Class SimpleProgressbar
[hide private]
[frames] | no frames]

Class SimpleProgressbar



                   object --+                
                            |                
                  sip.wrapper --+            
                                |            
             PyQt4.QtCore.QObject --+        
                                    |        
                   object --+       |        
                            |       |        
                  sip.wrapper --+   |        
                                |   |        
         PyQt4.QtGui.QPaintDevice --+        
                                    |        
                  PyQt4.QtGui.QWidget --+    
                                        |    
                      PyQt4.QtGui.QDialog --+
                                            |
                               object --+   |
                                        |   |
ui.simpleprogressbar.Ui_SimpleProgressbar --+
                                            |
                                           SimpleProgressbar

A simple progress bar dialog.

A SimpleProgressbar is QT::ApplicationModal and can't be closed unless canClose is set to True or close() is called manually.
>>> bar = SimpleProgressbar()
>>> bar.setWindowTitle(bar.trUtf8('a bar'))
>>> bar.setProgressbar(0, 100, 20)
>>> bar.setValue(50)


Nested Classes [hide private]

Inherited from PyQt4.QtGui.QDialog: DialogCode

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric


Instance Methods [hide private]
  __init__(self, parent=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  closeEvent(self, event)
Event handler for QCloseEvent
  close(self)
Overwrite close() to set canClose to True
  setProgressbar(self, minval, maxval, value=None)
Set progress bar min, max and initial value
  increase(self, *args)
Increase value by one
  decrease(self, *args)
Decrease value by one
  setValue(self, value)
Set value of progress bar

Inherited from PyQt4.QtGui.QDialog: accept, actionEvent, changeEvent, childEvent, connectNotify, contextMenuEvent, create, customEvent, destroy, disconnectNotify, done, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, enabledChange, enterEvent, event, eventFilter, exec_, extension, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPreviousChild, fontChange, hideEvent, inputMethodEvent, isSizeGripEnabled, keyPressEvent, keyReleaseEvent, languageChange, leaveEvent, metric, minimumSizeHint, mouseDoubleClickEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, moveEvent, orientation, paintEvent, paletteChange, receivers, reject, resetInputContext, resizeEvent, result, sender, setExtension, setModal, setOrientation, setResult, setSizeGripEnabled, setVisible, showEvent, showExtension, sizeHint, tabletEvent, timerEvent, updateMicroFocus, wheelEvent, windowActivationChange

Inherited from PyQt4.QtGui.QWidget: acceptDrops, accessibleDescription, accessibleName, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, childAt, childrenRect, childrenRegion, clearFocus, clearMask, contentsRect, contextMenuPolicy, cursor, devType, ensurePolished, find, focusPolicy, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grabKeyboard, grabMouse, grabShortcut, handle, hasFocus, hasMouseTracking, height, heightForWidth, hide, inputContext, inputMethodQuery, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, layout, layoutDirection, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseGrabber, move, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, parentWidget, pos, raise_, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, repaint, resize, restoreGeometry, saveGeometry, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setHidden, setInputContext, setLayout, setLayoutDirection, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setShortcutAutoRepeat, setShortcutEnabled, setShown, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabOrder, setToolTip, setUpdatesEnabled, setWhatsThis, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, show, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, testAttribute, toolTip, topLevelWidget, underMouse, unsetCursor, unsetLayoutDirection, update, updateGeometry, updatesEnabled, visibleRegion, whatsThis, width, winId, window, windowFlags, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, x, x11Info, x11PictureHandle, y

Inherited from PyQt4.QtCore.QObject: blockSignals, children, connect, deleteLater, disconnect, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, removeEventFilter, setObjectName, setProperty, signalsBlocked, startTimer, thread, tr, trUtf8

Inherited from PyQt4.QtGui.QPaintDevice: depth, heightMM, logicalDpiX, logicalDpiY, numColors, paintingActive, physicalDpiX, physicalDpiY, widthMM

Inherited from sip.wrapper: __delattr__, __getattribute__, __new__, __setattr__

Inherited from ui.simpleprogressbar.Ui_SimpleProgressbar: retranslateUi, setupUi

Inherited from object: __hash__, __repr__, __str__


Class Variables [hide private]

Inherited from PyQt4.QtGui.QDialog: Accepted, Rejected

Inherited from PyQt4.QtCore.QObject: __reduce__, __reduce_ex__

Inherited from PyQt4.QtGui.QPaintDevice: PdmDepth, PdmDpiX, PdmDpiY, PdmHeight, PdmHeightMM, PdmNumColors, PdmPhysicalDpiX, PdmPhysicalDpiY, PdmWidth, PdmWidthMM


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, parent=None)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: sip.wrapper.__init__
(inherited documentation)

closeEvent(self, event)

 
Event handler for QCloseEvent
Overrides: PyQt4.QtGui.QDialog.closeEvent

close(self)

 
Overwrite close() to set canClose to True
Overrides: PyQt4.QtGui.QWidget.close

setProgressbar(self, minval, maxval, value=None)

 
Set progress bar min, max and initial value
Parameters:
  • minval (int) - minimum value
  • maxval (int) - maximum value
  • value (int, None) - initial value (set to minval if value is None)

increase(self, *args)

 

Increase value by one

Additional arguments are ignored. You can use the method as a destination for a signal w/o worrying about the signature.

Qt Slot (increase()): increase value by one

decrease(self, *args)

 

Decrease value by one

Additional arguments are ignored. You can use the method as a destination for a signal w/o worrying about the signature.

Qt Slot (decrease()): decrease value by one

setValue(self, value)

 
Set value of progress bar
Parameters:
  • value (int) - current value of the progress bar
Decorators:
  • @pyqtSignature("int")

Qt Slot (setValue(int)): set value of progress bar