jbrowser.ui.stack_picker
Generated from the source code of JBrowser 2.0.3.
The stack picker: the empty place that opens below a card, offering what to stack there.
It lives in the canvas, in the slot it fills (Canvas.open_stack_picker), so the column already shows where the new card will go: a new card (search or type an address), a card that is already open in this space, a favourite or a bookmark. Choosing one makes the slot grow into that card. The footer sets the width of the whole column, which its cards always share.
Constants#
| Name | Value |
|---|---|
SECTIONS |
(('new', 'New'), ('cards', 'Open cards'), ('favourites', 'Favourites'), ('bookmarks', '… |
PLACEHOLDERS |
{'new': 'Search or type an address', 'cards': 'Find an open card', 'favourites': 'Find … |
WIDTHS |
(('⅓', 1 / 3), ('½', 0.5), ('⅔', 2 / 3), ('Full', 1.0)) |
ROLE |
Qt.ItemDataRole.UserRole |
StackPicker#
class StackPicker(QFrame)source
StackPicker(ctx: 'AppContext', ui: 'BrowserController', canvas: 'Canvas', anchor_id: str)
StackPicker.focus_input#
focus_input() -> Nonesource
StackPicker.set_section#
set_section(key: str) -> Nonesource
StackPicker.refresh#
refresh(*_a) -> Nonesource
Qt overrides: paintEvent, resizeEvent, eventFilter, keyPressEvent, closeEvent