spinetoolbox.widgets.custom_combobox

A widget for presenting basic information about the application.

author
  1. Savolainen (VTT)

date

14.12.2017

Module Contents

Classes

ElidedCombobox

Combobox with elided text.

OpenProjectDialogComboBox

class spinetoolbox.widgets.custom_combobox.ElidedCombobox[source]

Bases: PySide2.QtWidgets.QComboBox

Combobox with elided text.

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

Bases: PySide2.QtWidgets.QComboBox

keyPressEvent(self, 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.