iblviewer.qt_application
Functions
Classes
Matplotlib statistics |
|
This is the main entry point to start a Qt application. |
|
This is the main window container that holds the UI, the 3D viewer and statistics |
- class MplCanvas(parent=None, width=5, height=4, dpi=100, background_color='white')[source]
Bases:
matplotlib.backends.backend_qt5agg.FigureCanvasQTAgg
Matplotlib statistics
- class ViewerWindow(parent=None)[source]
Bases:
PyQt5.QtWidgets.QMainWindow
This is the main window container that holds the UI, the 3D viewer and statistics
- initialize(viewer=None, callable=None, stats_callable=None, dark_mode=True, **kwargs)[source]
Initialize the viewer app
- Parameters
viewer – Either iblviewer.application.Viewer or iblviewer.mouse_brain.MouseBrainViewer
callable – A function that you pass to this method. You must write that function with a required parameter (the viewer). This allows you to perform actions with the viewer before content is shown in QT UI. It would also be possible to add a python console in QT in order to run Python code live like in Jupyter notebooks but this isn’t implemented yet.
stats_callable – A function that will be executed every time the plot is updated for instance when a new object or sub selecton is made
dark_mode – Whether the app is in dark mode or not
- set_dark_mode(on=True)[source]
Set dark mode to viewer and stats
- Parameters
on – Whether dark mode is on
- add_input(label_text, change_function=None, layout=None, autocomplete=False)[source]
Add an input line with a label
- add_button(label, click_function, layout=None, tooltip=None, auto_render=True, toggle=False, set_checked=False)[source]
Add a new button to a layout
- add_checkbox(label, click_function, layout=None, tooltip=None, auto_render=True, set_checked=False)[source]
Add a new checkbox to a layout