pyqt-windows-buttons-widget

PyQt Windows titlebar buttons (e.g. min/max/close button) widget


Keywords
pyqt, pyqt-examples, pyqt5, pyqt5-examples, pyqt5-tutorial, python, python3, python37, qpushbutton, qt, windows, windows-titlebar, windows10, windows10-gui, windows10-titlebar, windows10-ui
License
MIT
Install
pip install pyqt-windows-buttons-widget==0.0.18

Documentation

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

Usage

  • WindowsMinMaxCloseButtonsWidget(base_widget: QWidget, hint=['min', 'max', 'close'], font=QFont('Arial', 12)) - Constructor. The argument base_widget is used for matching the color of buttons with QWidget(including QMenuBar)'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.