inspigtor.gui.widgets package¶
Submodules¶
inspigtor.gui.widgets.checkable_combobox module¶
-
class
inspigtor.gui.widgets.checkable_combobox.CheckableComboBox¶ Bases:
PyQt5.QtWidgets.QComboBoxThis class implements a QComboBox whose items are checkable.
-
addItem(item, userData=None)¶ Add a new checkable item.
- Args:
- item (PyQt5.QtGui.QStandardItem): the itme to add userData (object): the data associated with item to add
-
inspigtor.gui.widgets.copy_pastable_tableview module¶
-
class
inspigtor.gui.widgets.copy_pastable_tableview.CopyFilter¶ Bases:
PyQt5.QtCore.QObjectThis class implements an event filter when the user press Ctrl-C on a copy-pastable table view.
-
eventFilter(source, event)¶ Event filter when the user press Ctrl-C on a copy-pastable table view.
- Args:
- source (inspigtor.gui.widgets.copy_pastable_tableview.CopyPastableTableView): the table view event (PyQt5.QtCore.QEvent): the event
-
-
class
inspigtor.gui.widgets.copy_pastable_tableview.CopyPastableTableView(*args, **kwargs)¶ Bases:
PyQt5.QtWidgets.QTableViewThis class implements a table view whose selection can be copy and pasted to the clipboard
-
inspigtor.gui.widgets.copy_pastable_tableview.copy_selection(tableview)¶ Copy the selected dqtq of q tqble view to the clipboqrd
- Args:
- tableview (PyQt5.QtWidgets.QTableView): the table view to copy data from
inspigtor.gui.widgets.coverages_widget module¶
This module implements the class CoveragesWidget.
-
class
inspigtor.gui.widgets.coverages_widget.CoveragesWidget(pigs_model, parent=None)¶ Bases:
PyQt5.QtWidgets.QWidgetThis class implements the widgets that stores the coverage plot.
A coverage plot is a plot which indicates for each record interval the ratio of float-evaluable values over the total number of values. A ratio of 1 indicates that all values could be successfully casted to a float.
-
build_layout()¶ Build the layout.
-
build_widgets()¶ Builds the widgets.
-
init_ui()¶ Initializes the ui.
-
update_coverage_plot(coverages)¶ Update the coverage plot
- Args:
- coverages (list): the coverages values to plot
-
inspigtor.gui.widgets.droppable_list_view module¶
-
class
inspigtor.gui.widgets.droppable_list_view.DroppableListView(*args, **kwargs)¶ Bases:
PyQt5.QtWidgets.QListView-
dragEnterEvent(event)¶ Event triggered when the dragged item enter into this widget.
-
dragMoveEvent(event)¶ Event triggered when the dragged item is moved above the target widget.
-
dropEvent(event)¶ Event triggered when the dragged item is dropped into this widget.
-
keyPressEvent(self, QKeyEvent)¶
-
inspigtor.gui.widgets.group_effect_widget module¶
-
class
inspigtor.gui.widgets.group_effect_widget.GroupEffectWidget(groups_model, parent=None)¶ Bases:
PyQt5.QtWidgets.QWidgetThis class implements the widget that stores the group effect statistics.
-
build_layout()¶ Build the layout.
-
build_widgets()¶ Builds the widgets.
-
display_group_effect()¶ Display the global group effect and the pairwise group effect if the number of groups is > 2.
-
init_ui()¶ Initializes the ui
-
inspigtor.gui.widgets.intervals_widget module¶
-
class
inspigtor.gui.widgets.intervals_widget.IntervalsWidget(pigs_model, parent=None)¶ Bases:
PyQt5.QtWidgets.QWidgetThis class implements the widget that store intervals settings.
-
build_events()¶ Build the signal/slots.
-
build_layout()¶ Build the layout.
-
build_widgets()¶ Build the widgets.
-
init_ui()¶ Initializes the ui.
-
on_add_interval_settings()¶ Event fired when the user add a new interval.
-
on_clear_interval_settings()¶ Event fired when the user clears the intervals defined so far.
-
on_search_record_intervals()¶ Event handler called when the search record intervals button is clicked.
Compute the record intervals for the selected pig.
-
on_select_interval(index)¶ Event handler for interval selection.
It will grey the data table for the corresponding interval
- Args:
- index (PyQt5.QtCore.QModelIndex): the index corresponding to the selected interval
-
on_update_record_intervals(reader, record_intervals)¶ Update the intervals list with the newly selected pig.
- Args:
- reader (inspigtor.readers.picco2_reader.PiCCO2FileReader): the reader corresponding to the selected pig record_intervals (list of tuples): the record intervals
-
record_interval_selected¶
-
update_properties¶
-
inspigtor.gui.widgets.logger_widget module¶
inspigtor.gui.widgets.statistics_widget module¶
-
class
inspigtor.gui.widgets.statistics_widget.StatisticsWidget(pigs_model, main_window)¶ Bases:
PyQt5.QtWidgets.QWidget-
build_events()¶
-
build_layout()¶ Setup the layout of the widget
-
build_widgets()¶ Setup and initialize the widgets
-
init_ui()¶ Initializes the ui
-
on_add_group()¶
-
on_select_group(index)¶ Updates the individuals list view.
-
on_show_group_averages()¶
-
on_show_individual_averages()¶ Computes the average of a given property
-
on_show_statistics()¶ Open the statistics dialog.
-
inspigtor.gui.widgets.time_effect_widget module¶
-
class
inspigtor.gui.widgets.time_effect_widget.TimeEffectWidget(groups_model, parent=None)¶ Bases:
PyQt5.QtWidgets.QWidgetThis class implements the widget that will store the time-effect statistics.
-
build_events()¶ Build signal/slots
-
build_layout()¶ Build the layout.
-
build_widgets()¶ Build the widgets.
-
display_time_effect()¶ Display the global time effect and the pairwise time effect.
-
init_ui()¶ Initializes the ui.
-
on_select_group(selected_group)¶ Event fired when the user change of group for showing the corresponding Dunn matrix.
- Args:
- selected_group (int): the selected group
-