{"id":15021596,"url":"https://github.com/yjg30737/pyqt-drawer","last_synced_at":"2025-07-30T14:10:00.091Z","repository":{"id":57678648,"uuid":"438135125","full_name":"yjg30737/pyqt-drawer","owner":"yjg30737","description":"PyQt drawer","archived":false,"fork":false,"pushed_at":"2022-06-27T07:25:03.000Z","size":50,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T04:48:39.390Z","etag":null,"topics":["drawer","pyqt","pyqt-drawer","pyqt-examples","pyqt-tutorial","pyqt5","pyqt5-drawer","pyqt5-examples","pyqt5-gui","pyqt5-tutorial","python","python3","python37","qpropertyanimation","qt"],"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":"2021-12-14T05:57:48.000Z","updated_at":"2023-11-07T07:10:55.000Z","dependencies_parsed_at":"2022-09-14T03:30:30.406Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-drawer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/pyqt-drawer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-drawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-drawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-drawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-drawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-drawer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-drawer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267881010,"owners_count":24159823,"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-07-30T02:00:09.044Z","response_time":70,"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":["drawer","pyqt","pyqt-drawer","pyqt-examples","pyqt-tutorial","pyqt5","pyqt5-drawer","pyqt5-examples","pyqt5-gui","pyqt5-tutorial","python","python3","python37","qpropertyanimation","qt"],"created_at":"2024-09-24T19:56:46.284Z","updated_at":"2025-07-30T14:10:00.034Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-drawer\nPyQt drawer.\n\nYou can set the widget to drawer.\n\nOpening, closing drawer involved animations of size change and drawer/parent window's opacity.\n\n## Requirements\nPyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-drawer`\n\n## Included Packages\n* \u003ca href=\"https://github.com/yjg30737/pyqt-svg-button.git\"\u003epyqt-svg-button\u003c/a\u003e\n\n## Feature\n* `Drawer(parent, widget: QWidget, orientation)` Constructor.\n    * `parent` is parent window.\n    * `widget` is the widget you want to set in the drawer.\n    * `orientation` is orientation of drawer. Available values are Qt.Horizontal, Qt.Vertical. \n* Being able to set size/opacity duration with `drawer.setDuration(msc)`\n* Being able to set end size value with `drawer.setEndValue(size)`.\n\n## Example\nCode Example\n```python\nfrom PyQt5.QtWidgets import QMainWindow, QListWidget, QApplication, QWidget, QGridLayout\nfrom pyqt_drawer.drawer import Drawer\nfrom pyqt_timer.settingsDialog import SettingsDialog\n\n\nclass MainWindow(QMainWindow):\n    def __init__(self):\n        super().__init__()\n        self.__initUi()\n\n    def __initUi(self):\n        listWidget = QListWidget()\n        listWidget.addItems(\n            ['Age of Empires II: Definitive Edition', 'American Truck Simulator', 'Arma 3', \"Assassin's Creed\"])\n        drawer = Drawer(self, listWidget) # widget to show/hide\n        drawer.setDuration(200) # set duration (200 milliseconds)\n        drawer.setEndValue(listWidget.sizeHint().width())  # set end value with listWidget's appropriate maximum width\n        \n        lay = QGridLayout()\n        lay.addWidget(SettingsDialog(), 0, 0, 1, 1)\n        lay.addWidget(drawer, 0, 0, 1, 1)\n        lay.setContentsMargins(0, 0, 0, 0)\n        mainWidget = QWidget()\n        mainWidget.setLayout(lay)\n        self.setCentralWidget(mainWidget)\n\n\nif __name__ == \"__main__\":\n    import sys\n\n    app = QApplication(sys.argv)\n    mainWindow = MainWindow()\n    mainWindow.show()\n    app.exec_()\n```\n\nResult\n\nhttps://user-images.githubusercontent.com/55078043/169175912-bce19b71-2246-46aa-9435-5b108ae72c62.mp4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-drawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-drawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-drawer/lists"}