spinetoolbox.widgets.custom_combobox

Contains custom combo box classes.

Module Contents

Classes

CustomQComboBox

A custom QComboBox for showing kernels in Settings->Tools.

ElidedCombobox

Combobox with elided text.

OpenProjectDialogComboBox

class spinetoolbox.widgets.custom_combobox.CustomQComboBox[source]

Bases: PySide6.QtWidgets.QComboBox

A custom QComboBox for showing kernels in Settings->Tools.

mouseMoveEvent(e)[source]

Catch mouseMoveEvent and accept it because the comboBox popup (QListView) has mouse tracking on as default. This makes sure the comboBox popup appears in correct position and clicking on the combobox repeatedly does not move the Settings window.

class spinetoolbox.widgets.custom_combobox.ElidedCombobox[source]

Bases: PySide6.QtWidgets.QComboBox

Combobox with elided text.

paintEvent(event)[source]
class spinetoolbox.widgets.custom_combobox.OpenProjectDialogComboBox[source]

Bases: PySide6.QtWidgets.QComboBox

keyPressEvent(e)[source]

Interrupts Enter and Return key presses when QComboBox is in focus. This is needed to prevent showing the ‘Not a valid Spine Toolbox project’ Notifier every time Enter is pressed.

Parameters

e (QKeyEvent) – Received key press event.