{"id":15044960,"url":"https://github.com/zhiyiyo/pyqt-frameless-window","last_synced_at":"2025-05-14T15:09:26.884Z","repository":{"id":39591513,"uuid":"347549476","full_name":"zhiyiYo/PyQt-Frameless-Window","owner":"zhiyiYo","description":"A cross-platform frameless window based on PyQt/PySide, support Win32, Linux and macOS.","archived":false,"fork":false,"pushed_at":"2025-04-07T08:24:11.000Z","size":26969,"stargazers_count":547,"open_issues_count":12,"forks_count":71,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-12T01:52:51.972Z","etag":null,"topics":["acrylic","aero","cross-platform","custom","frameless-window","mica","pyqt5","pyqt6","pyside","pyside2","pyside6","qt"],"latest_commit_sha":null,"homepage":"https://pyqt-frameless-window.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhiyiYo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"zhiyiYo","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://afdian.net/a/zhiyiYo","https://space.bilibili.com/471587058"]}},"created_at":"2021-03-14T05:10:01.000Z","updated_at":"2025-04-10T13:52:20.000Z","dependencies_parsed_at":"2023-12-24T15:40:20.062Z","dependency_job_id":"991b0ecf-ba61-4cb3-b270-fbcee5d381aa","html_url":"https://github.com/zhiyiYo/PyQt-Frameless-Window","commit_stats":{"total_commits":112,"total_committers":4,"mean_commits":28.0,"dds":0.0267857142857143,"last_synced_commit":"f140af18d96553137d12b9984f2ed645bbff1558"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiyiYo%2FPyQt-Frameless-Window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiyiYo%2FPyQt-Frameless-Window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiyiYo%2FPyQt-Frameless-Window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiyiYo%2FPyQt-Frameless-Window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhiyiYo","download_url":"https://codeload.github.com/zhiyiYo/PyQt-Frameless-Window/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505873,"owners_count":21115354,"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":["acrylic","aero","cross-platform","custom","frameless-window","mica","pyqt5","pyqt6","pyside","pyside2","pyside6","qt"],"created_at":"2024-09-24T20:51:17.052Z","updated_at":"2025-05-14T15:09:26.878Z","avatar_url":"https://github.com/zhiyiYo.png","language":"Python","funding_links":["https://ko-fi.com/zhiyiYo","https://afdian.net/a/zhiyiYo","https://space.bilibili.com/471587058"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"15%\" align=\"center\" src=\"https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/master/screenshot/logo.png\" alt=\"logo\"\u003e\n\u003c/p\u003e\n  \u003ch1 align=\"center\"\u003e\n  PyQt-Frameless-Window\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  A cross-platform frameless window based on PyQt5\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca style=\"text-decoration:none\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Platform-Win32%20|%20Linux%20|%20macOS-blue?color=#4ec820\" alt=\"Platform Win32 | Linux | macOS\"/\u003e\n  \u003c/a\u003e\n\n  \u003ca style=\"text-decoration:none\"\u003e\n    \u003cimg src=\"https://static.pepy.tech/personalized-badge/pyqt5-frameless-window?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=brightgreen\u0026left_text=Downloads\" alt=\"Download\"/\u003e\n  \u003c/a\u003e\n\n  \u003ca style=\"text-decoration:none\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-GPLv3-blue?color=#4ec820\" alt=\"GPLv3\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n![Cover](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/master/screenshot/cover.jpg)\n\n\n## Features\n* Moving\n* Stretching\n* Window shadow\n* Window animation\n* Win11 snap layout\n* Win10 acrylic blur\n* Win11 mica blur\n* Win7 Aero blur\n* MacOS blur\n* Disable screen capture\n\n\n## Install\nTo install use pip:\n```shell\npip install PyQt5-Frameless-Window\n```\nOr clone the repo:\n```shell\ngit clone https://github.com/zhiyiYo/PyQt-Frameless-Window.git\npython setup.py install\n```\n\n## Requirements\n\n| Platform | Requirement |\n| :------: | :---------: |\n|  Win32   |   pywin32   |\n|  Linux   |   xcffib    |\n|  MacOS   |   pyobjc    |\n\n\n## Usage\nTo use the frameless window, you only need to inherit `FramelessWindow` or `FramelessMainWindow`. Here is a minimal example:\n```python\nimport sys\n\nfrom PyQt5.QtWidgets import QApplication\nfrom qframelesswindow import FramelessWindow\n\n\nclass Window(FramelessWindow):\n\n    def __init__(self, parent=None):\n        super().__init__(parent=parent)\n        self.setWindowTitle(\"PyQt-Frameless-Window\")\n        self.titleBar.raise_()\n\n\nif __name__ == '__main__':\n    app = QApplication(sys.argv)\n    demo = Window()\n    demo.show()\n    sys.exit(app.exec_())\n```\nFor more complex requirements, see [demo.py](https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/master/examples/demo.py) and [main_window.py](https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/master/examples/main_window.py).\n\n## Examples\n* Normal frameless window\n![Normal Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/master/screenshot/normal_frameless_window.gif)\n* Acrylic frameless window\n![Acrylic Frameless Window](https://raw.githubusercontent.com/zhiyiYo/PyQt-Frameless-Window/master/screenshot/acrylic_window.jpg)\n\n\n## Document\nWant to know more about PyQt-Frameless-Window? Please read the [help document](https://pyqt-frameless-window.readthedocs.io/) 👈\n\n\n## Notes\n1. `FramelessWindow` provides a default custom title bar. If you don't like it, just rewrite it as [demo.py](https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/master/examples/demo.py) does.\n\n2. Moving the acrylic window on Win10 may get stuck. At present, there is no good solution. Maybe you can disable the acrylic effect when moving the window, but I haven't done this in the source code.\n3. Snap layout is not enabled by default. See [#56](https://github.com/zhiyiYo/PyQt-Frameless-Window/issues/56) to learn how to enable it.\n\n4. If you encounter this problem on Windows:\n   \u003e ImportError: DLL load failed while importing win32api\n\n   see my answer on [stackoverflow](https://stackoverflow.com/questions/58612306/how-to-fix-importerror-dll-load-failed-while-importing-win32api/72488468#72488468) or my [blog](https://www.cnblogs.com/zhiyiYo/p/16340429.html) for the solution.\n\n5. If you are using PySide2, PySide6 or PyQt6, you can download the code in [PySide2](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/Pyside2), [PySide6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PySide6) or [PyQt6](https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/PyQt6) branch.\n\n## Support\nIf this project helps you a lot and you want to support the development and maintenance of this project, feel free to sponsor me via [爱发电](https://afdian.com/a/zhiyiYo) or [ko-fi](https://ko-fi.com/zhiyiYo). Your support is highly appreciated 🥰\n\n## See Also\nHere are some projects that use PyQt-Frameless-Window:\n* [**zhiyiYo/QFluentWidgets**: A fluent design widgets library based on Qt](https://qfluentwidgets.com)\n* [**zhiyiYo/Groove**: A cross-platform music player based on PyQt5](https://github.com/zhiyiYo/Groove)\n* [**zhiyiYo/Alpha-Gobang-Zero**: A gobang robot based on reinforcement learning](https://github.com/zhiyiYo/Alpha-Gobang-Zero)\n\n## Reference\n* [**wangwenx190/framelesshelper**: Frameless windows for Qt Widgets and Qt Quick applications. Support Win32, X11, Wayland and macOS](https://github.com/wangwenx190/framelesshelper)\n* [**libxcb**: Basic Graphics Programming With The XCB Library](https://www.x.org/releases/X11R7.5/doc/libxcb/tutorial)\n\n## License\nPyQt-Frameless-Window is licensed under [GPLv3](./LICENSE).\n\nCopyright © 2021 by zhiyiYo.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhiyiyo%2Fpyqt-frameless-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhiyiyo%2Fpyqt-frameless-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhiyiyo%2Fpyqt-frameless-window/lists"}