Skip to main content

PyQt table widget for showing date

Project description

pyqt-date-table-widget

PyQt table widget for showing date

Requirements

PyQt5 >= 5.8

Setup

python -m pip install pyqt-date-table-widget

Feature

  • Available to set date range to show (100 as default)

  • Available to set start date (current date as default)

  • Show different color for weekend

Example

Code Example

from PyQt5.QtCore import QDate

from PyQt5.QtWidgets import QApplication

from pyqt_date_table_widget import DateTableWidget



if __name__ == "__main__":

    import sys



    app = QApplication(sys.argv)

    afterFifteenDaysFromToday = QDate.currentDate().addDays(15)

    dateTableWidget = DateTableWidget(start_date=afterFifteenDaysFromToday, date_range=1000)

    dateTableWidget.setColumnCount(2)

    dateTableWidget.setHorizontalHeaderLabels(['Literature', 'Mathematics'])

    dateTableWidget.show()

    app.exec_()

Result

image

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-date-table-widget-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

pyqt_date_table_widget-0.0.1-py3-none-any.whl (3.5 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