trspectrometer.qtwidgets module

class trspectrometer.qtwidgets.AspectRatioPixmapLabel(parent=None)[source]

Bases: QLabel

A QLabel which maintains the correct aspect ratio of the contained image upon resize.

heightForWidth(self, arg__1: int, /) int[source]
resizeEvent(self, event: PySide6.QtGui.QResizeEvent, /) None[source]
scaledPixmap()[source]
setPixmap(self, arg__1: PySide6.QtGui.QPixmap | PySide6.QtGui.QImage, /) None[source]
sizeHint(self, /) PySide6.QtCore.QSize[source]
staticMetaObject = PySide6.QtCore.QMetaObject("AspectRatioPixmapLabel" inherits "QLabel": )
class trspectrometer.qtwidgets.FlowLayout(parent=None, margin=0, spacing=-1)[source]

Bases: QLayout

A QLayout which arranges its child widgets horizontally and vertically.

A Qt for Python port of the layouts/flowlayout example. If enough horizontal space is available, it looks like an HBoxLayout, but if space is lacking, it automatically wraps its children into multiple rows.

addItem(self, arg__1: PySide6.QtWidgets.QLayoutItem, /) None[source]
addSpacing(size)[source]
count(self, /) int[source]
expandingDirections(self, /) PySide6.QtCore.Qt.Orientation[source]
hasHeightForWidth(self, /) bool[source]
heightForWidth(self, arg__1: int, /) int[source]
itemAt(self, index: int, /) PySide6.QtWidgets.QLayoutItem | None[source]
minimumSize(self, /) PySide6.QtCore.QSize[source]
setGeometry(self, arg__1: PySide6.QtCore.QRect, /) None[source]
sizeHint(self, /) PySide6.QtCore.QSize[source]
takeAt(self, index: int, /) PySide6.QtWidgets.QLayoutItem[source]
heightChanged
staticMetaObject = PySide6.QtCore.QMetaObject("FlowLayout" inherits "QLayout": Methods:   #4 type=Signal, signature=heightChanged(int), parameters=int )