ui¶
Contains all the Designer created widgets, one per module
- class hummingbird.interface.ui.DataWindow(parent=None)[source]¶
Bases:
QMainWindow
Base class for all the data display windows (e.g. PlotWindow, ImageWindow)
- get_state(settings)[source]¶
Returns settings that can be used to restore the widget to the current state
- get_time(index=None)[source]¶
Returns the time of the given index, or the time of the last data point
Show what data sources are available
- class hummingbird.interface.ui.PlotWindow(parent=None)[source]¶
Bases:
DataWindow
,object
Window to display 2D plots
- acceptable_data_types = ['scalar', 'vector', 'tuple', 'triple', 'running_hist', 'histogram', 'normalized_histogram']¶
- get_state(_settings=None)[source]¶
Returns settings that can be used to restore the widget to the current state
- get_time(index=None)[source]¶
Returns the time of the given index, or the time of the last data point
- class hummingbird.interface.ui.ImageWindow(parent=None)[source]¶
Bases:
DataWindow
,object
Window to display images
- acceptable_data_types = ['image', 'vector', 'triple', 'running_hist']¶
- get_state(_settings=None)[source]¶
Returns settings that can be used to restore the widget to the current state
- get_time(index=None)[source]¶
Returns the time of the given index, or the time of the last data point
- get_time_and_msg(index=None)[source]¶
Returns the time/msg of the given index, or the time/msg of the last data point
- restore_from_state(settings, data_sources)[source]¶
Restores the widget to the same state as when the settings were generated