{"id":17603175,"url":"https://github.com/yjg30737/pyqt-foldable-window","last_synced_at":"2025-09-08T05:32:20.485Z","repository":{"id":108705538,"uuid":"445117547","full_name":"yjg30737/pyqt-foldable-window","owner":"yjg30737","description":"PyQt foldable window","archived":false,"fork":false,"pushed_at":"2022-05-18T04:40:58.000Z","size":46,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T02:03:51.928Z","etag":null,"topics":["pyqt","pyqt-examples","pyqt-gui","pyqt-qmenubar","pyqt-tutorial","pyqt5","pyqt5-examples","pyqt5-gui","pyqt5-qmenubar","pyqt5-tutorial","python","python3","python37","qmenubar","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-06T09:45:39.000Z","updated_at":"2024-06-04T11:47:15.000Z","dependencies_parsed_at":"2023-04-04T20:32:09.276Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-foldable-window","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/pyqt-foldable-window","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-foldable-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-foldable-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-foldable-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-foldable-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-foldable-window/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-foldable-window/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274136443,"owners_count":25228376,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["pyqt","pyqt-examples","pyqt-gui","pyqt-qmenubar","pyqt-tutorial","pyqt5","pyqt5-examples","pyqt5-gui","pyqt5-qmenubar","pyqt5-tutorial","python","python3","python37","qmenubar","qpushbutton","qt","qwidget"],"created_at":"2024-10-22T13:42:01.219Z","updated_at":"2025-09-08T05:32:20.186Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-foldable-window\nPyQt foldable window\n\nI will add this feature to \u003ca href=\"https://github.com/yjg30737/pyqt-custom-titlebar-window.git\"\u003epyqt-custom-titlebar-window\u003c/a\u003e.\n\nEven though this included aforementioned package.\n\n## Requirements\nPyQt5 \u003e= 5.8\n\n## Setup\n`pip3 install git+https://github.com/yjg30737/pyqt-foldable-window.git --upgrade`\n\n## Included Packages\n* \u003ca href=\"https://github.com/yjg30737/pyqt-svg-button.git\"\u003epyqt-svg-button\u003c/a\u003e\n* \u003ca href=\"https://github.com/yjg30737/pyqt-resource-helper.git\"\u003epyqt-resource-helper\u003c/a\u003e\n* \u003ca href=\"https://github.com/yjg30737/pyqt-custom-titlebar-window.git\"\u003epyqt-custom-titlebar-window\u003c/a\u003e\n\n## Feature\n* Being able to fold, unfold window by toggle button on the menu bar\n* Being able to move the window with dragging menu bar\n\n## Example\n```python\nfrom PyQt5.QtWidgets import QApplication, QMainWindow, QMenu\nfrom pyqt_foldable_window import FoldableWindow\n\n\nclass MainWindow(QMainWindow):\n    def __init__(self):\n        super().__init__()\n        self.__initUi()\n\n    def __initUi(self):\n        fileMenu = QMenu('File', self)\n        self.menuBar().addMenu(fileMenu)\n\n\nif __name__ == \"__main__\":\n    import sys\n\n    app = QApplication(sys.argv)\n    window = FoldableWindow(MainWindow())\n    window.show()\n    app.exec_()\n```\n\nResult\n\nNote: Preview below is very first version. Current version(0.3.0) icons are svg, so they are not blurry anymore.\n\nUnfolded state\n\n![image](https://user-images.githubusercontent.com/55078043/152663899-93b65dbd-5763-448a-a421-58681be3f3b7.png)\n\nFolded state\n\n![image](https://user-images.githubusercontent.com/55078043/152663909-8a7766b7-3efc-4398-bbc8-73094be9aa87.png)\n\n## Note\n`FoldableWindow`'s argument should be only `QMainWindow` kind of class that `QMenuBar` exists. If that is not exist, error will occur.\n\n## See Also\n* \u003ca href=\"https://github.com/yjg30737/pyqt-foldable-item-list-widget.git\"\u003epyqt-foldable-item-list-widget\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-foldable-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-foldable-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-foldable-window/lists"}