pyqt-windows-min-max-close-buttons-widget
PyQt Windows min/max/close buttons widget
Requirements
- PyQt5 >= 5.8
Setup
pip3 install git+https://github.com/yjg30737/pyqt-windows-min-max-close-buttons-widget.git --upgrade
Imported Package
- pyqt-min-max-close-buttons-widget - Parent widget
Usage
-
WindowsMinMaxCloseButtonsWidget(base_widget: QWidget, hint=['min', 'max', 'close'], font=QFont('Arial', 12))
- Constructor. The argumentbase_widget
is used for matching the color of buttons withQWidget
(includingQMenuBar
)'s base color.font
argument is the font of each button's text. -
getMinimizedBtn()
,getMaximizedBtn()
,getCloseBtn()
. - This module is used for pyqt-custom-titlebar-window's Windows style button. You can see the example of this module's usage on the documentation at the link above.