JBrowser Source Docs
You are reading the documentation for JBrowser 1.4.0. The newest release is 1.5.4. Go to the latest documentation

jbrowser.ui.titlebar

Generated from the source code of JBrowser 1.4.0.

jbrowser/ui/titlebar.py · 408 lines

Custom title bar: grouped navigation, the address pill, tools and window controls.

Constants#

Name Value
TITLE_H 44
BTN 32

AddressPill#

class AddressPill(QWidget)source
AddressPill(ctx: 'AppContext', parent: QWidget)

Signals

Signal Arguments
clicked ()
spaceClicked (QPoint)
starClicked ()
securityClicked (QPoint)

AddressPill.set_tab#

set_tab(tab: Tab | None) -> Nonesource

Qt overrides: mouseMoveEvent, enterEvent, leaveEvent, mousePressEvent, paintEvent

UpdateChip#

class UpdateChip(QAbstractButton)source
UpdateChip(parent: QWidget)

Accent pill on the ribbon that appears when a new JBrowser version is available.

Qt overrides: enterEvent, leaveEvent, paintEvent

TitleBar#

class TitleBar(QWidget)source
TitleBar(ctx: 'AppContext', ui: 'BrowserController', parent: QWidget)

TitleBar.refresh#

refresh() -> Nonesource

TitleBar.set_maximized#

set_maximized(maximized: bool) -> Nonesource

Qt overrides: resizeEvent, showEvent, contextMenuEvent, paintEvent, sizeHint

Functions#

suspicious_idn#

suspicious_idn(url: QUrl) -> boolsource

True when a host mixes Latin letters with look-alike characters from other scripts.

security_state#

security_state(ctx: 'AppContext', tab: Tab | None) -> tuple[str, str, str]source

Returns (glyph, colour token, short label) for the tab's connection.