pyvisor.GUI.tab_behaviours package

Submodules

pyvisor.GUI.tab_behaviours.animal_tab module

class pyvisor.GUI.tab_behaviours.animal_tab.AnimalTab(parent: QWidget, gui_data_interface: GUIDataInterface)[source]

Bases: QTabWidget

add_tab(index)[source]
copy_tab(animal: Animal, index: int)[source]
create_new_tab(animal: Animal)[source]
init_UI()[source]
remove_tab(animal_number: int, index: int)[source]
rename_tab(index, name)[source]

pyvisor.GUI.tab_behaviours.behaviour_checkbox module

class pyvisor.GUI.tab_behaviours.behaviour_checkbox.BehaviourCheckbox(parent: QWidget, this_behaviour: Behaviour, other_behaviour: Behaviour, initial_state: bool, gui_data_interface: GUIDataInterface)[source]

Bases: QCheckBox

closeEvent(self, a0: QCloseEvent | None)[source]
init_UI(initial_state)[source]

pyvisor.GUI.tab_behaviours.behaviour_widget module

class pyvisor.GUI.tab_behaviours.behaviour_widget.BehaviourWidget(parent, behaviour: Behaviour, index_in_parent_list, gui_data_interface: GUIDataInterface)[source]

Bases: QFrame

Widget for editing a single behaviour’s properties.

Displays and allows editing of the behaviour name, colour, icon, and compatibility checkboxes.

init_UI()[source]
remove()[source]
rename()[source]
rename_finished()[source]
set_color()[source]
set_icon()[source]

pyvisor.GUI.tab_behaviours.compatible_behaviour_widget module

class pyvisor.GUI.tab_behaviours.compatible_behaviour_widget.CompatibleBehaviourWidget(parent_behaviour_widget, behaviour: Behaviour, gui_data_interface: GUIDataInterface)[source]

Bases: QWidget

add_checkbox(other_behaviour: Behaviour, state)[source]
add_compatibility(behav_name)[source]
closeEvent(self, a0: QCloseEvent | None)[source]
compatibility_toggled(name, state)[source]
init_UI()[source]
rearrange_checkboxes_with_larger_index(index_)[source]
remove_checkbox(name)[source]
remove_compatibility(behav_name)[source]

pyvisor.GUI.tab_behaviours.single_animal_tab module

class pyvisor.GUI.tab_behaviours.single_animal_tab.SingleAnimalTab(parent, animal: Animal, index_in_parent_tab_widget, gui_data_interface: GUIDataInterface)[source]

Bases: QWidget

Sub-tab for a single animal’s behaviour definitions.

Shows a grid of BehaviourWidget instances with controls to add, remove, copy, rename, and bulk-colour behaviours.

add_behaviour_widget(behaviour: Behaviour)[source]
copy_this_tab()[source]
get_behav_widget_by_name(name)[source]
get_current_pos()[source]
static get_grid_pos(i)[source]
init_UI()[source]
property name
remove_this_tab()[source]
remove_widget(i, behaviour: Behaviour)[source]
rename()[source]
rename_finished()[source]

pyvisor.GUI.tab_behaviours.tab_behaviours module

class pyvisor.GUI.tab_behaviours.tab_behaviours.TabBehaviours(parent: QWidget, gui_data_interface: GUIDataInterface)[source]

Bases: QWidget

Behaviours tab — define animals and their behaviours.

Provides a sub-tab per animal where behaviours can be added, removed, renamed, coloured, and assigned icons.

get_number_of_animals()[source]
get_number_of_behaviours_of_animal(i)[source]
init_UI()[source]
resizeEvent(self, a0: QResizeEvent | None)[source]

Module contents

Behaviour definition tab widgets.