command_bar#

Module Contents#

CommandButton

Command button

CommandToolTipFilter

Command tool tip filter

MoreActionsButton

More action button

CommandSeparator

Command separator

CommandMenu

Command menu

CommandBar

Command bar

CommandViewMenu

Command view menu

CommandViewBar

Command view bar

CommandBarView

Command bar view

class CommandButton(parent: PyQt5.QtWidgets.QWidget = None)#

Bases: qfluentwidgets.components.widgets.button.TransparentToggleToolButton

Command button

Constructors#

  • CommandButton(parent: QWidget = None)

  • CommandButton(icon: QIcon | str | FluentIconBase = None, parent: QWidget = None)

setTight(isTight: bool)#
isTight()#
sizeHint() PyQt5.QtCore.QSize#
isIconOnly()#
text()#
setText(text: str)#
setAction(action: PyQt5.QtWidgets.QAction)#
action()#
paintEvent(e)#
class CommandToolTipFilter(parent: PyQt5.QtWidgets.QWidget, showDelay=300, position=ToolTipPosition.TOP)#

Bases: qfluentwidgets.components.widgets.tool_tip.ToolTipFilter

Command tool tip filter

class MoreActionsButton(parent: PyQt5.QtWidgets.QWidget = None)#

Bases: CommandButton

More action button

sizeHint()#
clearState()#
class CommandSeparator(parent=None)#

Bases: PyQt5.QtWidgets.QWidget

Command separator

paintEvent(e)#
class CommandMenu(parent=None)#

Bases: qfluentwidgets.components.widgets.menu.RoundMenu

Command menu

class CommandBar(parent=None)#

Bases: PyQt5.QtWidgets.QFrame

Command bar

property commandButtons#
setSpaing(spacing: int)#
spacing()#
addAction(action: PyQt5.QtWidgets.QAction)#

add action

Parameters#

action: QAction

the action to add

addActions(actions: Iterable[PyQt5.QtWidgets.QAction])#
addHiddenAction(action: PyQt5.QtWidgets.QAction)#

add hidden action

addHiddenActions(actions: List[PyQt5.QtWidgets.QAction])#

add hidden action

insertAction(before: PyQt5.QtWidgets.QAction, action: PyQt5.QtWidgets.QAction)#
addSeparator()#
insertSeparator(index: int)#
addWidget(widget: PyQt5.QtWidgets.QWidget)#

add widget to command bar

removeAction(action: PyQt5.QtWidgets.QAction)#
removeWidget(widget: PyQt5.QtWidgets.QWidget)#
removeHiddenAction(action: PyQt5.QtWidgets.QAction)#
setToolButtonStyle(style: PyQt5.QtCore.Qt.ToolButtonStyle)#

set the style of tool button

toolButtonStyle()#
setButtonTight(isTight: bool)#
isButtonTight()#
setIconSize(size: PyQt5.QtCore.QSize)#
iconSize()#
resizeEvent(e)#
minimumSizeHint() PyQt5.QtCore.QSize#
updateGeometry()#
suitableWidth()#
resizeToSuitableWidth()#
setFont(font: PyQt5.QtGui.QFont)#
setMenuDropDown(down: bool)#

set the animation direction of more actions menu

isMenuDropDown()#
class CommandViewMenu(parent=None)#

Bases: CommandMenu

Command view menu

setDropDown(down: bool, long=False)#
class CommandViewBar(parent=None)#

Bases: CommandBar

Command view bar

setMenuDropDown(down: bool)#

set the animation direction of more actions menu

isMenuDropDown()#
class CommandBarView(parent=None)#

Bases: qfluentwidgets.components.widgets.flyout.FlyoutViewBase

Command bar view

setMenuVisible(isVisible)#
addWidget(widget: PyQt5.QtWidgets.QWidget)#
setSpaing(spacing: int)#
spacing()#
addAction(action: PyQt5.QtWidgets.QAction)#
addActions(actions: Iterable[PyQt5.QtWidgets.QAction])#
addHiddenAction(action: PyQt5.QtWidgets.QAction)#
addHiddenActions(actions: List[PyQt5.QtWidgets.QAction])#
insertAction(before: PyQt5.QtWidgets.QAction, action: PyQt5.QtWidgets.QAction)#
addSeparator()#
insertSeparator(index: int)#
removeAction(action: PyQt5.QtWidgets.QAction)#
removeWidget(widget: PyQt5.QtWidgets.QWidget)#
removeHiddenAction(action: PyQt5.QtWidgets.QAction)#
setToolButtonStyle(style: PyQt5.QtCore.Qt.ToolButtonStyle)#
toolButtonStyle()#
setButtonTight(isTight: bool)#
isButtonTight()#
setIconSize(size: PyQt5.QtCore.QSize)#
iconSize()#
setFont(font: PyQt5.QtGui.QFont)#
setMenuDropDown(down: bool)#
suitableWidth()#
resizeToSuitableWidth()#
actions()#
paintEvent(e)#