qrainbowstyle.windows.base package

Submodules

qrainbowstyle.windows.base.Buttons module

Bases: PyQt5.QtWidgets.QLabel

Label with app logo.

class qrainbowstyle.windows.base.Buttons.ButtonsWidget(parent)[source]

Bases: PyQt5.QtWidgets.QWidget

Widget with titlebar buttons

class qrainbowstyle.windows.base.Buttons.CloseDarwinButton(parent=None)[source]

Bases: qrainbowstyle.windows.base.Buttons.TitlebarDarwinButton

class qrainbowstyle.windows.base.Buttons.CloseSquareWindowsButton(parent=None)[source]

Bases: qrainbowstyle.windows.base.Buttons.TitlebarWindowsButton

class qrainbowstyle.windows.base.Buttons.CloseWindowsButton(parent=None)[source]

Bases: qrainbowstyle.windows.base.Buttons.TitlebarWindowsButton

class qrainbowstyle.windows.base.Buttons.MaximizeDarwinButton(parent=None)[source]

Bases: qrainbowstyle.windows.base.Buttons.TitlebarDarwinButton

class qrainbowstyle.windows.base.Buttons.MaximizeWindowsButton(parent=None)[source]

Bases: qrainbowstyle.windows.base.Buttons.TitlebarWindowsButton

class qrainbowstyle.windows.base.Buttons.MenuButton(parent)[source]

Bases: PyQt5.QtWidgets.QToolButton

MenuButton documentation

class qrainbowstyle.windows.base.Buttons.MinimizeDarwinButton(parent=None)[source]

Bases: qrainbowstyle.windows.base.Buttons.TitlebarDarwinButton

class qrainbowstyle.windows.base.Buttons.MinimizeWindowsButton(parent=None)[source]

Bases: qrainbowstyle.windows.base.Buttons.TitlebarWindowsButton

class qrainbowstyle.windows.base.Buttons.RestoreDarwinButton(parent=None)[source]

Bases: qrainbowstyle.windows.base.Buttons.TitlebarDarwinButton

class qrainbowstyle.windows.base.Buttons.RestoreWindowsButton(parent=None)[source]

Bases: qrainbowstyle.windows.base.Buttons.TitlebarWindowsButton

class qrainbowstyle.windows.base.Buttons.TitlebarDarwinButton(parent)[source]

Bases: PyQt5.QtWidgets.QPushButton

class qrainbowstyle.windows.base.Buttons.TitlebarWindowsButton(parent)[source]

Bases: PyQt5.QtWidgets.QPushButton

qrainbowstyle.windows.base.Titlebar module

class qrainbowstyle.windows.base.Titlebar.Titlebar(parent=None)[source]

Bases: PyQt5.QtWidgets.QFrame

Titlebar for frameless windows.

addMenu(menu: PyQt5.QtWidgets.QMenu)[source]
closeClicked
maximizeClicked
minimizeClicked
mouseOverTitlebar(x, y)[source]
on_btnClose_clicked()[source]
on_btnMaximize_clicked()[source]
on_btnMinimize_clicked()[source]
on_btnRestore_clicked()[source]
restoreClicked
setTitlebarHeight(height: int)[source]
setWindowIcon(self, QIcon)[source]

Show or hide app logo label

showMaximizeButton(value)[source]
showMinimizeButton(value)[source]
showRestoreButton(value)[source]

qrainbowstyle.windows.base.Window module

class qrainbowstyle.windows.base.Window.FramelessWindowBase(parent)[source]

Bases: PyQt5.QtWidgets.QDialog

addContentWidget(widget: PyQt5.QtWidgets.QWidget)[source]

Add master widget to window.

Parameters

widget (QWidget) – Content widget.

addMenu(menu)[source]
changeEvent(self, QEvent)[source]
closeClicked
insertContentWidget(index, widget: PyQt5.QtWidgets.QWidget)[source]

Insert master widget to window at pos.

Parameters
  • index (int) – Index

  • widget (QWidget) – Content widget.

isResizingEnabled() bool[source]

Return if window allows resizing

Returns

Window allow resizing.

Return type

value (bool)

FramelessWindowBase.setContentsMargins(self, int, int, int, int)[source]
setContentsMargins(self, QMargins) None
setEdgeSnapping(value: bool)[source]
setResizingEnabled(value: bool)[source]

Enable window resizing

Parameters

value (bool) – Enable or disable window resizing

setTitlebarHeight(height: int)[source]

Set titlebar height.

Parameters

height (int) – Titlebar height.

setWindowIcon(self, QIcon)[source]
showSizeControl(value: bool)[source]
showWindowShadow(value: bool)[source]
titlebar()[source]

Module contents