{"id":17603075,"url":"https://github.com/yjg30737/pyqt-tab-widget","last_synced_at":"2025-07-28T12:16:39.369Z","repository":{"id":57679515,"uuid":"458423556","full_name":"yjg30737/pyqt-tab-widget","owner":"yjg30737","description":"PyQt QTabWidget which is the most common type. This has a lot of common features such as close a tab, close tabs to the left/right, close other tabs and so on.","archived":false,"fork":false,"pushed_at":"2022-05-15T00:49:52.000Z","size":36,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T02:41:07.711Z","etag":null,"topics":["pyqt","pyqt-examples","pyqt5","pyqt5-examples","pyqt5-tutorial","python","python3","python37","qt","qtabwidget","tabwidget"],"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-12T04:51:52.000Z","updated_at":"2025-01-20T13:29:53.000Z","dependencies_parsed_at":"2022-09-01T05:42:15.880Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-tab-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/pyqt-tab-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-tab-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-tab-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-tab-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-tab-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-tab-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-tab-widget/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267514958,"owners_count":24100030,"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-28T02:00:09.689Z","response_time":68,"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","pyqt5","pyqt5-examples","pyqt5-tutorial","python","python3","python37","qt","qtabwidget","tabwidget"],"created_at":"2024-10-22T13:39:07.770Z","updated_at":"2025-07-28T12:16:39.341Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-tab-widget\nPyQt QTabWidget which is the most common type (if you doubt it, see the 'feature' section below). This has a lot of common features such as close a tab, close tabs to the left/right, close other tabs and so on.\n\n## Requirements\n* PyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-tab-widget`\n\n## Feature\n* List which is able to do with context menu\n  * close a tab\n  * close tabs to the left\n  * close tabs to the right\n  * close other tabs\n  * close all tabs\n  * reopen closed tab\n* Alt+Left to change the current tab to the very left tab\n* Alt+Right to change the current tab to the very right tab\n* Ctrl+F4 to close current tab\n* Close any tabs with clicking the close button (close button's style is defaut, i will customize it)\n\n## Example\nCode Sample\n\n```python\nfrom PyQt5.QtWidgets import QApplication, QWidget, QMainWindow\nfrom pyqt_tab_widget import TabWidget\n\n\nclass MainWindow(QMainWindow):\n  def __init__(self):\n    super().__init__()\n    self.__initUi()\n\n  def __initUi(self):\n    tabWidget = TabWidget()\n    tabWidget.addTab(QWidget(), 'A')\n    tabWidget.addTab(QWidget(), 'B')\n    tabWidget.addTab(QWidget(), 'C')\n    tabWidget.addTab(QWidget(), 'D')\n    tabWidget.addTab(QWidget(), 'E')\n    self.setCentralWidget(tabWidget)\n\n\nif __name__ == \"__main__\":\n  import sys\n\n  app = QApplication(sys.argv)\n  mainWindow = MainWindow()\n  mainWindow.show()\n  sys.exit(app.exec_())\n```\n\nResult\n\n![image](https://user-images.githubusercontent.com/55078043/153697769-5134c02a-9cb8-4759-ae8a-53caae219659.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-tab-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-tab-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-tab-widget/lists"}