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.

buttons()[source]

Returns a list of all the buttons that have been added to the button box.

icon()[source]

This property holds the message box’s icon

removeButton(button)[source]

Removes button from the button box without deleting it and sets its parent to zero.

Parameters

button (StandardButton) – Standard button.

setIcon(icon)[source]

Set icon for message box.

Parameters

icon (QIcon) – Message box icon.

setStandardButtons(buttons)[source]

Set standard buttons for message box.

Parameters

buttons (StandardButtons) – Standard buttons.

setText(text: str)[source]

Set text for message box.

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.

standardButtons()[source]

This property holds collection of standard buttons in the button box. This property controls which standard buttons are used by the button box.

text()[source]

This property holds the message box text to be displayed. The default value of this property is an empty string.

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

eventFilter(widget, event: PyQt5.QtCore.QEvent)[source]

Handle frameless window events.

Parameters
  • widget (QObject) – Widget.

  • event (QEvent) – Event.

setMouseTracking(flag)[source]

Recursively enables mouse tracking for all child widgets. This is required because eventFilter does not catch hover events.

Parameters

flag (bool) – Enable or disable mouse tracking.

qrainbowstyle.windows.FramelessWindowWin module

Module contents