command_bar =========== .. py:module:: qfluentwidgets.components.widgets.command_bar Module Contents --------------- .. autoapisummary:: qfluentwidgets.components.widgets.command_bar.CommandButton qfluentwidgets.components.widgets.command_bar.CommandToolTipFilter qfluentwidgets.components.widgets.command_bar.MoreActionsButton qfluentwidgets.components.widgets.command_bar.CommandSeparator qfluentwidgets.components.widgets.command_bar.CommandMenu qfluentwidgets.components.widgets.command_bar.CommandBar qfluentwidgets.components.widgets.command_bar.CommandViewMenu qfluentwidgets.components.widgets.command_bar.CommandViewBar qfluentwidgets.components.widgets.command_bar.CommandBarView .. py:class:: CommandButton(parent: PyQt5.QtWidgets.QWidget = None) Bases: :py:obj:`qfluentwidgets.components.widgets.button.TransparentToggleToolButton` Command button Constructors ------------ * CommandButton(`parent`: QWidget = None) * CommandButton(`icon`: QIcon | str | FluentIconBase = None, `parent`: QWidget = None) .. py:method:: setTight(isTight: bool) .. py:method:: isTight() .. py:method:: sizeHint() -> PyQt5.QtCore.QSize .. py:method:: isIconOnly() .. py:method:: text() .. py:method:: setText(text: str) .. py:method:: setAction(action: PyQt5.QtWidgets.QAction) .. py:method:: action() .. py:method:: paintEvent(e) .. py:class:: CommandToolTipFilter(parent: PyQt5.QtWidgets.QWidget, showDelay=300, position=ToolTipPosition.TOP) Bases: :py:obj:`qfluentwidgets.components.widgets.tool_tip.ToolTipFilter` Command tool tip filter .. py:class:: MoreActionsButton(parent: PyQt5.QtWidgets.QWidget = None) Bases: :py:obj:`CommandButton` More action button .. py:method:: sizeHint() .. py:method:: clearState() .. py:class:: CommandSeparator(parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QWidget` Command separator .. py:method:: paintEvent(e) .. py:class:: CommandMenu(parent=None) Bases: :py:obj:`qfluentwidgets.components.widgets.menu.RoundMenu` Command menu .. py:class:: CommandBar(parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QFrame` Command bar .. py:attribute:: moreButton .. py:method:: setSpaing(spacing: int) .. py:method:: spacing() .. py:method:: addAction(action: PyQt5.QtWidgets.QAction) add action Parameters ---------- action: QAction the action to add .. py:method:: addActions(actions: Iterable[PyQt5.QtWidgets.QAction]) .. py:method:: addHiddenAction(action: PyQt5.QtWidgets.QAction) add hidden action .. py:method:: addHiddenActions(actions: List[PyQt5.QtWidgets.QAction]) add hidden action .. py:method:: insertAction(before: PyQt5.QtWidgets.QAction, action: PyQt5.QtWidgets.QAction) .. py:method:: addSeparator() .. py:method:: insertSeparator(index: int) .. py:method:: addWidget(widget: PyQt5.QtWidgets.QWidget) add widget to command bar .. py:method:: removeAction(action: PyQt5.QtWidgets.QAction) .. py:method:: removeWidget(widget: PyQt5.QtWidgets.QWidget) .. py:method:: removeHiddenAction(action: PyQt5.QtWidgets.QAction) .. py:method:: setToolButtonStyle(style: PyQt5.QtCore.Qt.ToolButtonStyle) set the style of tool button .. py:method:: toolButtonStyle() .. py:method:: setButtonTight(isTight: bool) .. py:method:: isButtonTight() .. py:method:: setIconSize(size: PyQt5.QtCore.QSize) .. py:method:: iconSize() .. py:method:: resizeEvent(e) .. py:method:: minimumSizeHint() -> PyQt5.QtCore.QSize .. py:method:: updateGeometry() .. py:method:: suitableWidth() .. py:method:: resizeToSuitableWidth() .. py:method:: setFont(font: PyQt5.QtGui.QFont) .. py:property:: commandButtons .. py:method:: setMenuDropDown(down: bool) set the animation direction of more actions menu .. py:method:: isMenuDropDown() .. py:class:: CommandViewMenu(parent=None) Bases: :py:obj:`CommandMenu` Command view menu .. py:method:: setDropDown(down: bool, long=False) .. py:class:: CommandViewBar(parent=None) Bases: :py:obj:`CommandBar` Command view bar .. py:method:: setMenuDropDown(down: bool) set the animation direction of more actions menu .. py:method:: isMenuDropDown() .. py:class:: CommandBarView(parent=None) Bases: :py:obj:`qfluentwidgets.components.widgets.flyout.FlyoutViewBase` Command bar view .. py:attribute:: bar .. py:attribute:: hBoxLayout .. py:method:: setMenuVisible(isVisible) .. py:method:: addWidget(widget: PyQt5.QtWidgets.QWidget) .. py:method:: setSpaing(spacing: int) .. py:method:: spacing() .. py:method:: addAction(action: PyQt5.QtWidgets.QAction) .. py:method:: addActions(actions: Iterable[PyQt5.QtWidgets.QAction]) .. py:method:: addHiddenAction(action: PyQt5.QtWidgets.QAction) .. py:method:: addHiddenActions(actions: List[PyQt5.QtWidgets.QAction]) .. py:method:: insertAction(before: PyQt5.QtWidgets.QAction, action: PyQt5.QtWidgets.QAction) .. py:method:: addSeparator() .. py:method:: insertSeparator(index: int) .. py:method:: removeAction(action: PyQt5.QtWidgets.QAction) .. py:method:: removeWidget(widget: PyQt5.QtWidgets.QWidget) .. py:method:: removeHiddenAction(action: PyQt5.QtWidgets.QAction) .. py:method:: setToolButtonStyle(style: PyQt5.QtCore.Qt.ToolButtonStyle) .. py:method:: toolButtonStyle() .. py:method:: setButtonTight(isTight: bool) .. py:method:: isButtonTight() .. py:method:: setIconSize(size: PyQt5.QtCore.QSize) .. py:method:: iconSize() .. py:method:: setFont(font: PyQt5.QtGui.QFont) .. py:method:: setMenuDropDown(down: bool) .. py:method:: suitableWidth() .. py:method:: resizeToSuitableWidth() .. py:method:: actions() .. py:method:: paintEvent(e)