pyqt-tab-widget
PyQt 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.
Requirements
- PyQt5 >= 5.8
Setup
python -m pip install pyqt-tab-widget
Feature
-
List which is able to do with context menu
-
close a tab
-
close tabs to the left
-
close tabs to the right
-
close other tabs
-
close all tabs
-
reopen closed tab
-
-
Alt+Left to change the current tab to the very left tab
-
Alt+Right to change the current tab to the very right tab
-
Ctrl+F4 to close current tab
-
Close any tabs with clicking the close button (close button's style is defaut, i will customize it)
Example
Code Sample
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow
from pyqt_tab_widget import TabWidget
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
tabWidget = TabWidget()
tabWidget.addTab(QWidget(), 'A')
tabWidget.addTab(QWidget(), 'B')
tabWidget.addTab(QWidget(), 'C')
tabWidget.addTab(QWidget(), 'D')
tabWidget.addTab(QWidget(), 'E')
self.setCentralWidget(tabWidget)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
mainWindow = MainWindow()
mainWindow.show()
sys.exit(app.exec_())
Result
Metadata
Release files for pyqt-tab-widget 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyqt-tab-widget-0.0.1.tar.gz | 3.6 kB | Without provenance | Details for pyqt-tab-widget-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyqt_tab_widget-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pyqt_tab_widget-0.0.1-py3-none-any.whl |
Total release size: 7.7 kB
Release files / pyqt-tab-widget-0.0.1.tar.gz
| Download URL | pyqt-tab-widget-0.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf77f4583a6baa51d9ae52c8b0097c8b57679f60c23a06c140345b34d05d5570
|
|
BLAKE2b-256 checksum How to use checksums |
dd696646a00fe80cbb8070698d039861966860783ea663305d2d593a26951470
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Release files / pyqt_tab_widget-0.0.1-py3-none-any.whl
| Download URL | pyqt_tab_widget-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce4a1433fe16a487f0e1412938dbfcfc56e93855469458a5b2fcc4613e7ab3a2
|
|
BLAKE2b-256 checksum How to use checksums |
139c53f40e3441265d7a173a26509500900f427c697c77413d4df2b536c0996a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Security for pyqt-tab-widget 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.