topbar.tabs#

Defines the main item tab buttons found on the left hand side of the top bar.

Classes:

AssetsTabButton([parent])

BaseTabButton(label, idx, description[, parent])

The base class of our item tab buttons.

BookmarksTabButton([parent])

FavouritesTabButton([parent])

FilesTabButton([parent])

class bookmarks.topbar.tabs.AssetsTabButton(parent=None)[source]#

Bases: BaseTabButton

Methods:

contextMenuEvent(self, ev)

contextMenuEvent(self, ev: PySide2.QtGui.QContextMenuEvent) None[source]#
class bookmarks.topbar.tabs.BaseTabButton(label, idx, description, parent=None)[source]#

Bases: QLabel

The base class of our item tab buttons.

Methods:

adjust_size()

Slot responsible for setting the size of the widget to match the text.

enterEvent(self, event)

leaveEvent(self, event)

mouseDoubleClickEvent(self, event)

mouseReleaseEvent(event)

Only triggered when the left buttons is pressed.

paintEvent(event)

The control button's paint method - shows the set text and an underline if the tab is active.

showEvent(event)

Show event handler.

text(self)

adjust_size()[source]#

Slot responsible for setting the size of the widget to match the text.

enterEvent(self, event: PySide2.QtCore.QEvent) None[source]#
leaveEvent(self, event: PySide2.QtCore.QEvent) None[source]#
mouseDoubleClickEvent(self, event: PySide2.QtGui.QMouseEvent) None[source]#
mouseReleaseEvent(event)[source]#

Only triggered when the left buttons is pressed.

paintEvent(event)[source]#

The control button’s paint method - shows the set text and an underline if the tab is active.

showEvent(event)[source]#

Show event handler.

text(self) str[source]#
class bookmarks.topbar.tabs.BookmarksTabButton(parent=None)[source]#

Bases: BaseTabButton

Methods:

contextMenuEvent(self, ev)

contextMenuEvent(self, ev: PySide2.QtGui.QContextMenuEvent) None[source]#
class bookmarks.topbar.tabs.FavouritesTabButton(parent=None)[source]#

Bases: BaseTabButton

class bookmarks.topbar.tabs.FilesTabButton(parent=None)[source]#

Bases: BaseTabButton

Methods:

contextMenuEvent(self, ev)

paintEvent(event)

Indicating the visibility of the TaskItemView.

text(self)

contextMenuEvent(self, ev: PySide2.QtGui.QContextMenuEvent) None[source]#
paintEvent(event)[source]#

Indicating the visibility of the TaskItemView.

text(self) str[source]#