Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/pyqt-date-table-widget
PyQt table widget for showing date
https://github.com/yjg30737/pyqt-date-table-widget
pyqt pyqt-date-table-widget pyqt-examples pyqt-table-widget pyqt5 pyqt5-date-table-widget pyqt5-examples pyqt5-table-widget pyqt5-tutorial python python3 qdatetablewidget qt qtablewidget
Last synced: 16 days ago
JSON representation
PyQt table widget for showing date
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-date-table-widget
- Owner: yjg30737
- License: mit
- Created: 2021-12-06T05:16:29.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-14T09:15:35.000Z (over 2 years ago)
- Last Synced: 2024-10-11T09:28:53.251Z (2 months ago)
- Topics: pyqt, pyqt-date-table-widget, pyqt-examples, pyqt-table-widget, pyqt5, pyqt5-date-table-widget, pyqt5-examples, pyqt5-table-widget, pyqt5-tutorial, python, python3, qdatetablewidget, qt, qtablewidget
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```python
from PyQt5.QtCore import QDate
from PyQt5.QtWidgets import QApplication
from pyqt_date_table_widget import DateTableWidgetif __name__ == "__main__":
import sysapp = 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](https://user-images.githubusercontent.com/55078043/144793727-55338cb4-2a88-44f4-afc0-c2a184c95f85.png)