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)

closeEvent(event)[source]

Unsubscribe to any remaining broadcasts before closing

eventFilter(obj, event)[source]
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

on_menu_show()[source]

Show what data sources are available

on_save_to_png()[source]

Save a screenshot of the window

resizeEvent(event)[source]
restore_from_state(settings, data_sources)[source]

Restores the widget to the same state as when the settings were generated

set_sounds_and_volume()[source]
set_source_title(source, title, enable=True)[source]

Enable/disable a given broadcast

source_and_titles()[source]

Iterate through all available broadcasts

toggle_sounds()[source]
toggle_volume()[source]
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

keyPressEvent(event)[source]

Handle key presses

on_view_legend_box()[source]

Show/hide legend box

on_view_x_axis()[source]

Show/hide X axis

on_view_y_axis()[source]

Show/hide Y axis

replot()[source]

Replot data

restore_from_state(settings, data_sources)[source]

Restores the widget to the same state as when the settings were generated

updateFonts()[source]
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

init_running_hist(source, title)[source]
on_reset_cache()[source]
replot()[source]

Replot data

restore_from_state(settings, data_sources)[source]

Restores the widget to the same state as when the settings were generated

set_colormap_full_range()[source]

Ensures that the colormap covers the full range of values in the data

set_colormap_range()[source]

Set the minimum and maximum values for the colormap

toggle_axis(visible)[source]
toggle_settings(visible)[source]

Show/hide settings widget

updateFonts()[source]