Index
sgp.ui.widgets.__all__
module-attribute
__all__ = ['JupyterWidget', 'TabWindow', 'PropertyWidget', 'ScientificDoubleSpinBox', 'SplashScreen', 'TabWidget', 'TabWindow', 'TeXWidget']
sgp.ui.widgets.JupyterWidget
Bases: QtInProcessRichJupyterWidget, QWidget, QObject
Jupyter Qt Console Widget
sgp.ui.widgets.PropertyWidget
Bases: QWidget, QObject
Widget for displaying property items.
sgp.ui.widgets.PropertyWidget.__init__
__init__(name: str, value: float, enabled: bool = None, parent=None, *args, SpinBox: Type[QDoubleSpinBox] = QtWidgets.QDoubleSpinBox, **kwargs)
Initialize the PropertyWidget.
sgp.ui.widgets.PropertyWidget.isEnabled
isEnabled() -> bool
Get whether the PropertyWidget is enabled.
sgp.ui.widgets.PropertyWidget.setOptions
Set the options of the PropertyWidget.
sgp.ui.widgets.ScientificDoubleSpinBox
Bases: QDoubleSpinBox, QObject
A QDoubleSpinBox that displays floats in scientific notation.
sgp.ui.widgets.SplashScreen
Bases: QSplashScreen, QObject
Label to show splash screen with a close signal.
sgp.ui.widgets.TabWidget
Bases: QTabWidget
Tab widget with methods for adding tabs of any types.
sgp.ui.widgets.TabWidget.addAnyTab
sgp.ui.widgets.TabWidget.addFigureTab
addFigureTab(window: MainWindow, canvas: FigureCanvas)
Add a figure tab to the tab widget.
| PARAMETER | DESCRIPTION |
|---|---|
window |
The window to be displayed in the tab.
TYPE:
|
canvas |
The canvas to be displayed in the window.
TYPE:
|
sgp.ui.widgets.TabWidget.addTableTab
addTableTab(data, title: str) -> TableWidget
sgp.ui.widgets.TabWidget.getCanvas
getCanvas(label: str) -> FigureCanvas
Get canvas with given label.
sgp.ui.widgets.TabWindow
Bases: QMainWindow, QObject
Window for displaying tabbed matplotlib figures or data tables.
sgp.ui.widgets.TabWindow.closeEvent
Close all figures when closing window.
sgp.ui.widgets.TabWindow.closeTab
closeTab(index: int)
Close tab at given index and close window if it is the last tab.