{"id":17603043,"url":"https://github.com/yjg30737/pyqt-mac-buttons-widget","last_synced_at":"2025-04-14T21:24:58.133Z","repository":{"id":57678700,"uuid":"459423653","full_name":"yjg30737/pyqt-mac-buttons-widget","owner":"yjg30737","description":"PyQt macOS style of titlebar buttons (e.g. min/max/close) widget ","archived":false,"fork":false,"pushed_at":"2022-05-23T09:26:41.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T09:36:19.699Z","etag":null,"topics":["mac","macos","macos-gui","macos-ui","pyqt","pyqt-examples","pyqt5","pyqt5-examples","pyqt5-gui","pyqt5-tutorial","python","python3","python37","qhboxlayout","qpushbutton","qt","qwidget"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yjg30737.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-15T04:14:13.000Z","updated_at":"2024-08-10T22:57:24.000Z","dependencies_parsed_at":"2022-09-14T03:00:33.852Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-mac-buttons-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-mac-buttons-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-mac-buttons-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-mac-buttons-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-mac-buttons-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-mac-buttons-widget/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961545,"owners_count":21190048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mac","macos","macos-gui","macos-ui","pyqt","pyqt-examples","pyqt5","pyqt5-examples","pyqt5-gui","pyqt5-tutorial","python","python3","python37","qhboxlayout","qpushbutton","qt","qwidget"],"created_at":"2024-10-22T13:38:04.313Z","updated_at":"2025-04-14T21:24:58.103Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-mac-buttons-widget\nPyQt macOS style of titlebar buttons (e.g. min/max/close) widget \n\n## Requirements\n* PyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-mac-buttons-widget`\n\n## Included Package\n* \u003ca href=\"https://github.com/yjg30737/pyqt-titlebar-buttons-widget.git\"\u003epyqt-titlebar-buttons-widget\u003c/a\u003e - Parent widget\n\n## Method Overview\n* `MacButtonsWidget(base_widget=None, hint=['min', 'max', 'close']))` - Constructor.\n* `getMinimizedBtn()`, `getMaximizedBtn()`, `getCloseBtn()`. I belive these three methods are quite self-explanatory.\n* This module is used for \u003ca href=\"https://github.com/yjg30737/pyqt-custom-titlebar-window.git\"\u003epyqt-custom-titlebar-window\u003c/a\u003e's macOS style button. You can see the example of this module's usage on the documentation at the link above.. later.\n\n## Example\nThis example is just to show how it looks.\n\n```python\nfrom PyQt5.QtWidgets import QApplication\nfrom pyqt_mac_buttons_widget import MacButtonsWidget\n\nif __name__ == \"__main__\":\n    import sys\n\n    app = QApplication(sys.argv)\n    widget = MacButtonsWidget()\n    widget.show()\n    app.exec_()\n```\n\nResult\n\n![image](https://user-images.githubusercontent.com/55078043/154260566-706ae34f-37c5-42db-ab8d-90d0d58341db.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-mac-buttons-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-mac-buttons-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-mac-buttons-widget/lists"}