JBrowser Source Docs

jbrowser.ui.chrome_window

Generated from the source code of JBrowser 2.0.3.

jbrowser/ui/chrome_window.py · 139 lines

Tool windows (Settings, History, Downloads, ...).

They use the same technique as the main window: the whole window is client area, painted by JBrowser (the Frosted picture or the Solid colour, then a content layer), and a slim custom caption provides drag, Snap Layouts and minimise / maximise / close.

Constants#

Name Value
CAPTION_H 40

ChromeWindow#

class ChromeWindow(QWidget)source
ChromeWindow(title: str, parent: QWidget | None=None, size: tuple[int, int]=(900, 620), nav_width: int=0)

Top-level window with JBrowser's backdrop (Frosted or Solid). Subclasses populate self.root.

Qt overrides: nativeEvent, changeEvent, keyPressEvent, paintEvent