Package client :: Module StatusBar :: Class StatusBar
[hide private]
[frames] | no frames]

Class StatusBar

source code


Overview

This class acts as a mere facade for the PyQt status bar interface. All we need it to ever do is show text with or without a timer on them.

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
__init__(self, parent, bridge)
This constructor will set itself (a QStatusBar) to the parent, and will connect itself to the bridge.
source code
 
show(self, text)
This will show a message on the status bar for an indefinite amount of time.
source code
 
showTimed(self, text, seconds)
This will show a message on the status bar for a specified time in seconds (a float).
source code

Inherited from PyQt4.QtGui.QStatusBar: actionEvent, addPermanentWidget, addWidget, changeEvent, childEvent, clearMessage, closeEvent, connectNotify, contextMenuEvent, create, currentMessage, customEvent, destroy, disconnectNotify, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, enabledChange, enterEvent, event, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPreviousChild, fontChange, hideEvent, hideOrShow, inputMethodEvent, insertPermanentWidget, insertWidget, isSizeGripEnabled, keyPressEvent, keyReleaseEvent, languageChange, leaveEvent, metric, mouseDoubleClickEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, moveEvent, paintEvent, paletteChange, receivers, reformat, removeWidget, resetInputContext, resizeEvent, sender, setSizeGripEnabled, showEvent, showMessage, tabletEvent, timerEvent, updateMicroFocus, wheelEvent, windowActivationChange

Inherited from PyQt4.QtGui.QWidget: acceptDrops, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, 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, minimumSizeHint, minimumWidth, mouseGrabber, move, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, parentWidget, pos, raise_, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, repaint, resize, restoreGeometry, saveGeometry, scroll, setAcceptDrops, 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, setVisible, setWhatsThis, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeHint, 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, eventFilter, 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 object: __hash__, __reduce__, __reduce_ex__, __repr__, __str__

Class Variables [hide private]

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, bridge)
(Constructor)

source code 

Overview

This constructor will set itself (a QStatusBar) to the parent, and will connect itself to the bridge. This object will essentially just sit and wait for messages to be sent to it.

Parameters:
  • parent (QMainWindow) - The main window which the status bar will be inserted into.
  • bridge (Bridge) - The bridge object which connects all interactive components together.
Overrides: object.__init__

show(self, text)

source code 

Overview

This will show a message on the status bar for an indefinite amount of time. As soon as this method is called again, or the showTimed method, the message in 'text' will be taken down and replaced with the new message.

Parameters:
  • text (string) - The message you want displayed in the status bar.
Overrides: PyQt4.QtGui.QWidget.show

showTimed(self, text, seconds)

source code 

Overview

This will show a message on the status bar for a specified time in seconds (a float). The message in 'text' may come down sooner, if this method, or the show method is called before the time has elapsed.

Parameters:
  • text (string) - The message you want displayed in the status bar.
  • seconds (int or float) - The number of seconds you want the message to be displayed for.