Skip to main content

PyQt macOS style of titlebar buttons (e.g. min/max/close) widget

Project description

pyqt-mac-buttons-widget

PyQt macOS style of titlebar buttons (e.g. min/max/close) widget

Requirements

  • PyQt5 >= 5.8

Setup

python -m pip install pyqt-mac-buttons-widget

Included Package

Method Overview

  • MacButtonsWidget(base_widget=None, hint=['min', 'max', 'close'])) - Constructor.

  • getMinimizedBtn(), getMaximizedBtn(), getCloseBtn(). I belive these three methods are quite self-explanatory.

  • This module is used for pyqt-custom-titlebar-window's macOS style button. You can see the example of this module's usage on the documentation at the link above.. later.

Example

This example is just to show how it looks.

from PyQt5.QtWidgets import QApplication

from pyqt_mac_buttons_widget import MacButtonsWidget



if __name__ == "__main__":

    import sys



    app = QApplication(sys.argv)

    widget = MacButtonsWidget()

    widget.show()

    app.exec_()

Result

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqt-mac-buttons-widget-0.0.15.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

pyqt_mac_buttons_widget-0.0.15-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pyqt-mac-buttons-widget-0.0.15.tar.gz.

File metadata

File hashes

Hashes for pyqt-mac-buttons-widget-0.0.15.tar.gz
Algorithm Hash digest
SHA256 fa65be374aca53b2a7c2306d0a1fcfbb62538225fa43041dbf0117622d2f1b97
MD5 6c932bbed609251347a51d7ed7886423
BLAKE2b-256 1d3a915bbb0bbd200569e65eaac68e28d750936c6fa460639a70eec026e88ac3

See more details on using hashes here.

File details

Details for the file pyqt_mac_buttons_widget-0.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for pyqt_mac_buttons_widget-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 4d3e63b3bf9f6ee9162e0398edc2705b49cb1c03c15334f207a7e77fd816bd1a
MD5 73526313ae04817638d8df4f2b14bb3a
BLAKE2b-256 452a5f38d24a89cbb90bfc0549590389d6f83df85763132f72688c41f5450ef5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page