iasAlarmGui
index
/home/acaproni/ias/AlarmGui/src/main/python/iasAlarmGui.py

 
Modules
       
logging
random
string
sys
threading
typing

 
Classes
       
IasAlarmGui.ui_alarm_gui.Ui_AlarmGui(builtins.object)
MainWindow(PySide6.QtWidgets.QMainWindow, IasAlarmGui.ui_alarm_gui.Ui_AlarmGui, IasKafkaUtils.KafkaValueConsumer.IasValueListener)
IasKafkaUtils.KafkaValueConsumer.IasValueListener(builtins.object)
MainWindow(PySide6.QtWidgets.QMainWindow, IasAlarmGui.ui_alarm_gui.Ui_AlarmGui, IasKafkaUtils.KafkaValueConsumer.IasValueListener)
PySide6.QtWidgets.QMainWindow(PySide6.QtWidgets.QWidget)
MainWindow(PySide6.QtWidgets.QMainWindow, IasAlarmGui.ui_alarm_gui.Ui_AlarmGui, IasKafkaUtils.KafkaValueConsumer.IasValueListener)

 
class MainWindow(PySide6.QtWidgets.QMainWindow, IasAlarmGui.ui_alarm_gui.Ui_AlarmGui, IasKafkaUtils.KafkaValueConsumer.IasValueListener)
    MainWindow(bsdb_url: str | None, parent=None)
 

 
 
Method resolution order:
MainWindow
PySide6.QtWidgets.QMainWindow
PySide6.QtWidgets.QWidget
PySide6.QtCore.QObject
PySide6.QtGui.QPaintDevice
Shiboken.Object
IasAlarmGui.ui_alarm_gui.Ui_AlarmGui
IasKafkaUtils.KafkaValueConsumer.IasValueListener
builtins.object

Methods defined here:
__init__(self, bsdb_url: str | None, parent=None)
Constructor
 
Params:
    bsdb_url: The URL of the kafka brokers in format server:port, server:port...
              or None if not available
closeEvent(self, event: PySide6.QtGui.QCloseEvent) -> None
Event invloked when the main window is closed
 
NOTE: disconnectFromIas() runs in the Qt event loop so the window becomes
      unresponsive until this function terminates, the event is accepted 
      and the window finally closes
connectToIas(self, bsdb_brokers: str, full_running_id: str) -> None
Connect to the IAS passing this as listener
 
This function runs in a thread
disconnectFromIas(self) -> None
Disconnect from the IAS
fill_details(self, ias_value: IasBasicTypes.IasValue.IasValue, mode: IasAlarmGui.AlarmTableModel.TableMode) -> None
Fills the details in the right side of the GUI
with the details of the IasValue
 
Args:
    ias_value: the IasValue whose fields will be shown in the details
iasValueReceived(self, iasValue)
The callback to notify new IasValues
received from the BSDB
 
The implementation must override this method
onLeftClick(self, index: int, mode: IasAlarmGui.AlarmTableModel.TableMode)
Triggered when the user presses the mouse button over a row
onRightClick(self, index, mode: IasAlarmGui.AlarmTableModel.TableMode)
The user preseed the right mouse button over a row of an alarm of
the active or shelved table
 
Shjows the popup menu for the active or shelved table
onTableSelectionChanged(self, selected, deselected, mode: IasAlarmGui.AlarmTableModel.TableMode)
The user selected one row of the table: fills the
details in the right side of the GUI
on_ConnectDialog_finished(self)
# @Slot()
on_action_About_triggered(self)
on_action_Connect_triggered(self)
on_action_Disconnect_triggered(self)
on_action_Pause_toggled(self)
on_action_Remove_cleared_toggled(self)
shelveAlarmActionFinished(self, result)
signal_update_connected_ui = <PySide6.QtCore.Signal object>
update_statusbar_content(self)
Update the content of the status bar:
- the icon in the status bar according to the
  status of the kafka consumer
- the number of active alarms
- the number of shelved alarms

Data and other attributes defined here:
staticMetaObject = PySide6.QtCore.QMetaObject("MainWindow" inherits...t, signature=on_action_Remove_cleared_toggled() )

Methods inherited from PySide6.QtWidgets.QMainWindow:
__delattr__(self, name, /)
Implement delattr(self, name).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
addDockWidget(...)
addToolBar(...)
addToolBarBreak(...)
centralWidget(...)
contextMenuEvent(...)
corner(...)
createPopupMenu(...)
dockOptions(...)
dockWidgetArea(...)
documentMode(...)
event(...)
iconSize(...)
iconSizeChanged = <PySide6.QtCore.Signal object>
insertToolBar(...)
insertToolBarBreak(...)
isAnimated(...)
isDockNestingEnabled(...)
isSeparator(...)
menuBar(...)
menuWidget(...)
removeDockWidget(...)
removeToolBar(...)
removeToolBarBreak(...)
resizeDocks(...)
restoreDockWidget(...)
restoreState(...)
saveState(...)
setAnimated(...)
setCentralWidget(...)
setCorner(...)
setDockNestingEnabled(...)
setDockOptions(...)
setDocumentMode(...)
setIconSize(...)
setMenuBar(...)
setMenuWidget(...)
setStatusBar(...)
setTabPosition(...)
setTabShape(...)
setToolButtonStyle(...)
setUnifiedTitleAndToolBarOnMac(...)
splitDockWidget(...)
statusBar(...)
tabPosition(...)
tabShape(...)
tabifiedDockWidgetActivated = <PySide6.QtCore.Signal object>
tabifiedDockWidgets(...)
tabifyDockWidget(...)
takeCentralWidget(...)
toolBarArea(...)
toolBarBreak(...)
toolButtonStyle(...)
toolButtonStyleChanged = <PySide6.QtCore.Signal object>
unifiedTitleAndToolBarOnMac(...)

Static methods inherited from PySide6.QtWidgets.QMainWindow:
__new__(*args, **kwargs) class method of PySide6.QtWidgets.QMainWindow
Create and return a new object.  See help(type) for accurate signature.

Data and other attributes inherited from PySide6.QtWidgets.QMainWindow:
DockOption = <flag 'DockOption'>

Methods inherited from PySide6.QtWidgets.QWidget:
__repr__(self, /)
Return repr(self).
acceptDrops(...)
accessibleDescription(...)
accessibleIdentifier(...)
accessibleName(...)
actionEvent(...)
actions(...)
activateWindow(...)
addAction(...)
addActions(...)
adjustSize(...)
autoFillBackground(...)
backgroundRole(...)
backingStore(...)
baseSize(...)
changeEvent(...)
childAt(...)
childrenRect(...)
childrenRegion(...)
clearFocus(...)
clearMask(...)
close(...)
contentsMargins(...)
contentsRect(...)
contextMenuPolicy(...)
create(...)
createWinId(...)
cursor(...)
customContextMenuRequested = <PySide6.QtCore.Signal object>
destroy(...)
devType(...)
dragEnterEvent(...)
dragLeaveEvent(...)
dragMoveEvent(...)
dropEvent(...)
effectiveWinId(...)
ensurePolished(...)
enterEvent(...)
focusInEvent(...)
focusNextChild(...)
focusNextPrevChild(...)
focusOutEvent(...)
focusPolicy(...)
focusPreviousChild(...)
focusProxy(...)
focusWidget(...)
font(...)
fontInfo(...)
fontMetrics(...)
foregroundRole(...)
frameGeometry(...)
frameSize(...)
geometry(...)
grab(...)
grabGesture(...)
grabKeyboard(...)
grabMouse(...)
grabShortcut(...)
graphicsEffect(...)
graphicsProxyWidget(...)
hasFocus(...)
hasHeightForWidth(...)
hasMouseTracking(...)
hasTabletTracking(...)
height(...)
heightForWidth(...)
hide(...)
hideEvent(...)
initPainter(...)
inputMethodEvent(...)
inputMethodHints(...)
inputMethodQuery(...)
insertAction(...)
insertActions(...)
internalWinId(...)
isActiveWindow(...)
isAncestorOf(...)
isEnabled(...)
isEnabledTo(...)
isFullScreen(...)
isHidden(...)
isLeftToRight(...)
isMaximized(...)
isMinimized(...)
isModal(...)
isRightToLeft(...)
isTopLevel(...)
isVisible(...)
isVisibleTo(...)
isWindow(...)
isWindowModified(...)
keyPressEvent(...)
keyReleaseEvent(...)
layout(...)
layoutDirection(...)
leaveEvent(...)
locale(...)
lower(...)
mapFrom(...)
mapFromGlobal(...)
mapFromParent(...)
mapTo(...)
mapToGlobal(...)
mapToParent(...)
mask(...)
maximumHeight(...)
maximumSize(...)
maximumWidth(...)
metric(...)
minimumHeight(...)
minimumSize(...)
minimumSizeHint(...)
minimumWidth(...)
mouseDoubleClickEvent(...)
mouseMoveEvent(...)
mousePressEvent(...)
mouseReleaseEvent(...)
move(...)
moveEvent(...)
nativeEvent(...)
nativeParentWidget(...)
nextInFocusChain(...)
normalGeometry(...)
overrideWindowFlags(...)
overrideWindowState(...)
paintEngine(...)
paintEvent(...)
palette(...)
parentWidget(...)
pos(...)
previousInFocusChain(...)
raise_(...)
rect(...)
redirected(...)
releaseKeyboard(...)
releaseMouse(...)
releaseShortcut(...)
removeAction(...)
render(...)
repaint(...)
resize(...)
resizeEvent(...)
restoreGeometry(...)
saveGeometry(...)
screen(...)
scroll(...)
setAcceptDrops(...)
setAccessibleDescription(...)
setAccessibleIdentifier(...)
setAccessibleName(...)
setAttribute(...)
setAutoFillBackground(...)
setBackgroundRole(...)
setBaseSize(...)
setContentsMargins(...)
setContextMenuPolicy(...)
setCursor(...)
setDisabled(...)
setEnabled(...)
setFixedHeight(...)
setFixedSize(...)
setFixedWidth(...)
setFocus(...)
setFocusPolicy(...)
setFocusProxy(...)
setFont(...)
setForegroundRole(...)
setGeometry(...)
setGraphicsEffect(...)
setHidden(...)
setInputMethodHints(...)
setLayout(...)
setLayoutDirection(...)
setLocale(...)
setMask(...)
setMaximumHeight(...)
setMaximumSize(...)
setMaximumWidth(...)
setMinimumHeight(...)
setMinimumSize(...)
setMinimumWidth(...)
setMouseTracking(...)
setPalette(...)
setParent(...)
setScreen(...)
setShortcutAutoRepeat(...)
setShortcutEnabled(...)
setSizeIncrement(...)
setSizePolicy(...)
setStatusTip(...)
setStyle(...)
setStyleSheet(...)
setTabletTracking(...)
setToolTip(...)
setToolTipDuration(...)
setUpdatesEnabled(...)
setVisible(...)
setWhatsThis(...)
setWindowFilePath(...)
setWindowFlag(...)
setWindowFlags(...)
setWindowIcon(...)
setWindowIconText(...)
setWindowModality(...)
setWindowModified(...)
setWindowOpacity(...)
setWindowRole(...)
setWindowState(...)
setWindowTitle(...)
sharedPainter(...)
show(...)
showEvent(...)
showFullScreen(...)
showMaximized(...)
showMinimized(...)
showNormal(...)
size(...)
sizeHint(...)
sizeIncrement(...)
sizePolicy(...)
stackUnder(...)
statusTip(...)
style(...)
styleSheet(...)
tabletEvent(...)
testAttribute(...)
toolTip(...)
toolTipDuration(...)
topLevelWidget(...)
underMouse(...)
ungrabGesture(...)
unsetCursor(...)
unsetLayoutDirection(...)
unsetLocale(...)
update(...)
updateGeometry(...)
updateMicroFocus(...)
updatesEnabled(...)
visibleRegion(...)
whatsThis(...)
wheelEvent(...)
width(...)
winId(...)
window(...)
windowFilePath(...)
windowFlags(...)
windowHandle(...)
windowIcon(...)
windowIconChanged = <PySide6.QtCore.Signal object>
windowIconText(...)
windowIconTextChanged = <PySide6.QtCore.Signal object>
windowModality(...)
windowOpacity(...)
windowRole(...)
windowState(...)
windowTitle(...)
windowTitleChanged = <PySide6.QtCore.Signal object>
windowType(...)
x(...)
y(...)

Static methods inherited from PySide6.QtWidgets.QWidget:
createWindowContainer(...)
find(...)
keyboardGrabber(...)
mouseGrabber(...)
setTabOrder(...)

Data and other attributes inherited from PySide6.QtWidgets.QWidget:
RenderFlag = <flag 'RenderFlag'>

Methods inherited from PySide6.QtCore.QObject:
__getattribute__(self, name, /)
Return getattr(self, name).
blockSignals(...)
childEvent(...)
children(...)
connectNotify(...)
customEvent(...)
deleteLater(...)
destroyed = <PySide6.QtCore.Signal object>
disconnectNotify(...)
dumpObjectInfo(...)
dumpObjectTree(...)
dynamicPropertyNames(...)
emit(...)
eventFilter(...)
findChild(...)
findChildren(...)
inherits(...)
installEventFilter(...)
isQuickItemType(...)
isSignalConnected(...)
isWidgetType(...)
isWindowType(...)
killTimer(...)
metaObject(...)
moveToThread(...)
objectName(...)
objectNameChanged = <PySide6.QtCore.Signal object>
parent(...)
property(...)
receivers(...)
removeEventFilter(...)
sender(...)
senderSignalIndex(...)
setObjectName(...)
setProperty(...)
signalsBlocked(...)
startTimer(...)
thread(...)
timerEvent(...)

Class methods inherited from PySide6.QtCore.QObject:
tr(...)

Static methods inherited from PySide6.QtCore.QObject:
connect(...)
disconnect(...)

Methods inherited from PySide6.QtGui.QPaintDevice:
colorCount(...)
depth(...)
devicePixelRatio(...)
devicePixelRatioF(...)
heightMM(...)
logicalDpiX(...)
logicalDpiY(...)
paintingActive(...)
physicalDpiX(...)
physicalDpiY(...)
widthMM(...)

Static methods inherited from PySide6.QtGui.QPaintDevice:
devicePixelRatioFScale(...)
encodeMetricF(...)

Data descriptors inherited from PySide6.QtGui.QPaintDevice:
painters

Data and other attributes inherited from PySide6.QtGui.QPaintDevice:
PaintDeviceMetric = <enum 'PaintDeviceMetric'>

Data descriptors inherited from Shiboken.Object:
__dict__

Methods inherited from IasAlarmGui.ui_alarm_gui.Ui_AlarmGui:
retranslateUi(self, AlarmGui)
setupUi(self, AlarmGui)

Data descriptors inherited from IasAlarmGui.ui_alarm_gui.Ui_AlarmGui:
__weakref__
list of weak references to the object

 
Functions
       
Lock = allocate_lock(...)
allocate_lock() -> lock object
(allocate() is an obsolete synonym)
 
Create a new lock object. See help(type(threading.Lock())) for
information about locks.
parse(app) -> dict[str, typing.Any]
Parse the command line arguments
 
Returns:
    A dictionary with the params set in the command line:
        - 'ias_cdb': str if the parent folder of the IAS CDB if set in the command line
         - 'bsdb_url': str  BSDB (Kafka) URL
        - 'connect_to_bsdb': bool  True unless --donotconnect is set