Skip to main content

PyQt vertical tab widget (text is horizontal)

Project description

pyqt-vertical-tab-widget

PyQt vertical tab widget (text is horizontal)

Requirements

PyQt5 >= 5.8

Setup

python -m pip install pyqt-vertical-tab-widget

Example

Code Example

from PyQt5.QtCore import Qt

from PyQt5.QtGui import QFont

from PyQt5.QtWidgets import QApplication, QLabel

from pyqt_vertical_tab_widget.verticalTabWidget import VerticalTabWidget





if __name__ == "__main__":

    import sys



    app = QApplication(sys.argv)

    myWindow = VerticalTabWidget()

    for i in range(3):

        label = QLabel()

        label.setAlignment(Qt.AlignCenter)

        label.setText(f'Widget {i}')

        label.setFont(QFont('Arial', 30, QFont.Bold))

        myWindow.addTab(label, f'Tab {i}')

    myWindow.show()

    sys.exit(app.exec_())

Result

https://user-images.githubusercontent.com/55078043/145132730-b2294734-118d-4fc4-b493-943a1482e607.mp4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqt-vertical-tab-widget-0.0.12.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

pyqt_vertical_tab_widget-0.0.12-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page