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

jbrowser.models.space

Generated from the source code of JBrowser 1.5.3.

jbrowser/models/space.py ยท 37 lines

Space model: an isolated workspace with its own web profile.

Constants#

Name Value
SPACE_COLORS ['#4c8dff', '#a66bff', '#ff6b9a', '#ff9f43', '#2ecc71', '#1abc9c', '#f1c40f', '#e74c3c']
SPACE_ICONS ['๐Ÿ ', '๐Ÿ’ผ', '๐Ÿ› ๏ธ', '๐Ÿ”ฌ', '๐ŸŽฎ', '๐ŸŽต', '๐Ÿ“š', 'โœˆ๏ธ', '๐Ÿ’ก', '๐Ÿงช', '๐Ÿ“ฐ', '๐Ÿ›’', '๐ŸŽจ', '๐ŸŒฑ', 'โšก', '๐Ÿ•ถ๏ธ']

Space#

class Spacesource

Attributes

Name Value
name str
icon str = '๐Ÿ '
color str = SPACE_COLORS[0]
incognito bool = False
id str = field(default_factory=lambda: uuid.uuid4().hex[:12])
tabs list[Tab] = field(default_factory=list)
active_tab_id str = ''
selected set[str] = field(default_factory=set)
anchor_tab_id str = ''
proxy dict | None = None
scroll float = 0.0

Space.index_of#

index_of(tab_id: str) -> intsource

Space.active_tab#

active_tab() -> Tab | Nonesource