The widgets package#

Various parce-related Qt Widgets.

The widgets.lexiconchooser module#

LexiconChooser is a combobox to choose a root lexicon.

class LexiconChooser(parent=None, registry=None)[source]#

Bases: QComboBox

A combobox showing available root lexicons.

On instantiation the Registry can be given. If None, the default parce registry is used.

lexicon_changed#

This signal is emitted when the current lexicon changes.

The single argument is a Lexicon or None.

set_registry(registry)[source]#

Set the Registry and populate ourselves with the lexicons from the registry.

registry()[source]#

Return the currently set Registry.

display_name(qualname)[source]#

Return the text to display for the qualname.

By default the name from the registry’s entry is returned. If the qualname is None or the empty string, returns "None".

set_lexicon(lexicon)[source]#

Set the current lexicon (a Lexicon or None).

lexicon()[source]#

Return the current lexicon.