qrainbowstyle.windows package
Subpackages
Submodules
qrainbowstyle.windows.FramelessMessageBox module
- class qrainbowstyle.windows.FramelessMessageBox.FramelessCriticalMessageBox(parent=None)[source]
Bases:
qrainbowstyle.windows.FramelessMessageBox.FramelessMessageBox
- class qrainbowstyle.windows.FramelessMessageBox.FramelessInformationMessageBox(parent=None)[source]
Bases:
qrainbowstyle.windows.FramelessMessageBox.FramelessMessageBox
- class qrainbowstyle.windows.FramelessMessageBox.FramelessMessageBox(icon=None, parent=None)[source]
Bases:
qrainbowstyle.windows.FramelessWindow.FramelessWindow
Frameless messagebox.
- addButton(button, role)[source]
Adds the given button to the button box with the specified role. If the role is invalid, the button is not added.
If the button has already been added, it is removed and added again with the new role.
Note: The button box takes ownership of the button.
- Parameters
button (StandardButton) – Standard button.
role (ButtonRole) – Button role
- button(button)[source]
Returns the QPushButton corresponding to the standard button which, or 0 if the standard button doesn’t exist in this button box.
- Parameters
button (StandardButton) – Standard button.
- removeButton(button)[source]
Removes button from the button box without deleting it and sets its parent to zero.
- Parameters
button (StandardButton) – Standard button.
- setStandardButtons(buttons)[source]
Set standard buttons for message box.
- Parameters
buttons (StandardButtons) – Standard buttons.
- standardButton(button)[source]
Returns the standard button enum value corresponding to the given button, or NoButton if the given button isn’t a standard button.
- Parameters
button (QAbstractButton) – Standard button.
- class qrainbowstyle.windows.FramelessMessageBox.FramelessQuestionMessageBox(parent=None)[source]
Bases:
qrainbowstyle.windows.FramelessMessageBox.FramelessMessageBox
- class qrainbowstyle.windows.FramelessMessageBox.FramelessWarningMessageBox(parent=None)[source]
Bases:
qrainbowstyle.windows.FramelessMessageBox.FramelessMessageBox
qrainbowstyle.windows.FramelessWindow module
- class qrainbowstyle.windows.FramelessWindow.FramelessWindow(parent=None)[source]
Bases:
qrainbowstyle.windows.base.Window.FramelessWindowBase
Frameless window for non-Windows OS like Linux and Darwin. Reimplements features: - window moving - window resizing - maximize on double click on titlebar - snap to borders