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.services.favourites

Generated from the source code of JBrowser 1.5.3.

jbrowser/services/favourites.py · 105 lines

Sidebar favourites: sites pinned above the spaces (Arc-style), available in every space.

A favourite is a saved address with a title. Clicking it focuses the card that was opened from it in the current space, or opens a new one, so each favourite behaves like an app you keep coming back to.

Constants#

Name Value
MAX_FAVOURITES 16

Favourite#

class Favouritesource

Attributes

Name Value
url str
title str = ''
id str = field(default_factory=lambda: uuid.uuid4().hex[:12])

Favourite.host#

property hostsource

Favourite.label#

label() -> strsource

FavouritesService#

class FavouritesService(QObject)source
FavouritesService(path: Path, parent: QObject | None=None)

Signals

Signal Arguments
changed ()

FavouritesService.all#

all() -> list[Favourite]source

FavouritesService.get#

get(fid: str) -> Favourite | Nonesource

FavouritesService.find_url#

find_url(url: str) -> Favourite | Nonesource

FavouritesService.is_full#

is_full() -> boolsource

FavouritesService.add#

add(url: str, title: str='') -> Favourite | Nonesource

FavouritesService.remove#

remove(fid: str) -> Nonesource

FavouritesService.update#

update(fid: str, **fields) -> Nonesource

FavouritesService.move#

move(fid: str, index: int) -> Nonesource

FavouritesService.save_now#

save_now() -> Nonesource