dialog_box ========== .. py:module:: qfluentwidgets.components.dialog_box .. toctree:: :titlesonly: :maxdepth: 1 color_dialog/index.rst dialog/index.rst folder_list_dialog/index.rst mask_dialog_base/index.rst message_box_base/index.rst message_dialog/index.rst Package Contents ---------------- .. autoapisummary:: qfluentwidgets.components.dialog_box.ColorDialog qfluentwidgets.components.dialog_box.Dialog qfluentwidgets.components.dialog_box.MessageBox qfluentwidgets.components.dialog_box.FolderListDialog qfluentwidgets.components.dialog_box.MessageDialog qfluentwidgets.components.dialog_box.MessageBoxBase qfluentwidgets.components.dialog_box.MaskDialogBase .. py:class:: ColorDialog(color, title: str, parent=None, enableAlpha=False) Bases: :py:obj:`qfluentwidgets.components.dialog_box.mask_dialog_base.MaskDialogBase` Color dialog .. py:attribute:: colorChanged .. py:attribute:: enableAlpha :value: False .. py:attribute:: oldColor .. py:attribute:: color .. py:attribute:: scrollArea .. py:attribute:: scrollWidget .. py:attribute:: buttonGroup .. py:attribute:: yesButton .. py:attribute:: cancelButton .. py:attribute:: titleLabel .. py:attribute:: huePanel .. py:attribute:: newColorCard .. py:attribute:: oldColorCard .. py:attribute:: brightSlider .. py:attribute:: editLabel .. py:attribute:: redLabel .. py:attribute:: blueLabel .. py:attribute:: greenLabel .. py:attribute:: opacityLabel .. py:attribute:: hexLineEdit .. py:attribute:: redLineEdit .. py:attribute:: greenLineEdit .. py:attribute:: blueLineEdit .. py:attribute:: opacityLineEdit .. py:attribute:: vBoxLayout .. py:method:: setColor(color, movePicker=True) set color .. py:method:: updateStyle() update style sheet .. py:method:: showEvent(e) fade in .. py:class:: Dialog(title: str, content: str, parent=None) Bases: :py:obj:`qframelesswindow.FramelessDialog`, :py:obj:`Ui_MessageBox` Dialog box .. py:attribute:: yesSignal .. py:attribute:: cancelSignal .. py:attribute:: windowTitleLabel .. py:method:: setTitleBarVisible(isVisible: bool) .. py:class:: MessageBox(title: str, content: str, parent=None) Bases: :py:obj:`qfluentwidgets.components.dialog_box.mask_dialog_base.MaskDialogBase`, :py:obj:`Ui_MessageBox` Message box .. py:attribute:: yesSignal .. py:attribute:: cancelSignal .. py:method:: eventFilter(obj, e: PyQt5.QtCore.QEvent) .. py:class:: FolderListDialog(folderPaths: list, title: str, content: str, parent) Bases: :py:obj:`qfluentwidgets.components.dialog_box.mask_dialog_base.MaskDialogBase` Folder list dialog box .. py:attribute:: folderChanged .. py:attribute:: title .. py:attribute:: content .. py:attribute:: folderPaths .. py:attribute:: vBoxLayout .. py:attribute:: titleLabel .. py:attribute:: contentLabel .. py:attribute:: scrollArea .. py:attribute:: scrollWidget .. py:attribute:: completeButton .. py:attribute:: addFolderCard .. py:attribute:: folderCards .. py:class:: MessageDialog(title: str, content: str, parent) Bases: :py:obj:`qfluentwidgets.components.dialog_box.mask_dialog_base.MaskDialogBase` Win10 style message dialog box with a mask .. py:attribute:: yesSignal .. py:attribute:: cancelSignal .. py:attribute:: content .. py:attribute:: titleLabel .. py:attribute:: contentLabel .. py:attribute:: yesButton .. py:attribute:: cancelButton .. py:class:: MessageBoxBase(parent=None) Bases: :py:obj:`qfluentwidgets.components.dialog_box.mask_dialog_base.MaskDialogBase` Message box base .. py:attribute:: buttonGroup .. py:attribute:: yesButton .. py:attribute:: cancelButton .. py:attribute:: vBoxLayout .. py:attribute:: viewLayout .. py:attribute:: buttonLayout .. py:method:: validate() -> bool validate the data of form before closing dialog Returns ------- isValid: bool whether the data of form is legal .. py:method:: hideYesButton() .. py:method:: hideCancelButton() .. py:class:: MaskDialogBase(parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QDialog` Dialog box base class with a mask .. py:attribute:: windowMask .. py:attribute:: widget .. py:method:: setShadowEffect(blurRadius=60, offset=(0, 10), color=QColor(0, 0, 0, 100)) add shadow to dialog .. py:method:: setMaskColor(color: PyQt5.QtGui.QColor) set the color of mask .. py:method:: showEvent(e) fade in .. py:method:: done(code) fade out .. py:method:: isClosableOnMaskClicked() .. py:method:: setClosableOnMaskClicked(isClosable: bool) .. py:method:: setDraggable(draggable: bool) .. py:method:: isDraggable() -> bool .. py:method:: resizeEvent(e) .. py:method:: eventFilter(obj, e: PyQt5.QtCore.QEvent)