# Activity Calendar Widget.
One of my personal Qt based project to showcase my long honed skills in Python-bindings for Qt (C++) : PyQt, PySide.
## Usage
```bash
pip install activity_calendar_widget
```
```python
from PySide6.QtWidgets import *
from PySide6.QtCore import *
from activity_calendar_widget import *
class MainWidget(QWidget):
def __init__(self):
super().__init__()
lay = QVBoxLayout(self)
self.acw = ActivityCalendarWidget(
title="Activity",
default_activities={
"03-2024": {
2: "Event on day 2",
4: "Event on day 4",
6: "Event on day 6",
10: "Event on day 10",
11: "Event on day 11",
17: "Event on day 17",
20: "Event on day 20",
25: "Event on day 25",
26: "Event on day 26",
27: "Event on day 27",
31: "Event on day 31",
},
"04-2024": {
2: "Event on day 2",
6: "Event on day 6",
9: "Event on day 9",
10: "Event on day 10",
11: "Event on day 11",
17: "Event on day 17",
26: "Event on day 26",
31: "Event on day 31",
},
},
# default_month=datetime(2022, 1, 1)
)
s = 400
self.acw.setMinimumSize(s, s)
self.acw.setMaximumSize(s, s)
lay.addWidget(self.acw, 1, Qt.AlignmentFlag.AlignCenter)
class Application(QApplication):
def __init__(self) -> None:
super().__init__([])
self.win = MainWidget()
# self.win = QColorDialog()
# self.win.currentColorChanged.connect(lambda c: print(c))
self.win.setWindowTitle("Activity Calendar")
self.win.setMinimumSize(500, 500)
self.win.show()
app = Application()
app.exec()
```
## Figma Link
https://www.figma.com/community/file/1153390420369492172
credits to [Lindsay](https://www.figma.com/@lho)
## Images
- ![Image 1](img1.png)
- ![Image 2](img2.png)
Raw data
{
"_id": null,
"home_page": "https://github.com/prmpsmart/activity_calendar_widget",
"name": "activity-calendar-widget",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "activity calendar widget python setuptools",
"author": "Miracle Apata",
"author_email": "prmpsmart@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e4/17/83d1d6b4dc83bdc93dca44be8d51aec76eae9979443fa70231832a726e40/activity_calendar_widget-0.3.tar.gz",
"platform": "any",
"description": "# Activity Calendar Widget.\r\n\r\nOne of my personal Qt based project to showcase my long honed skills in Python-bindings for Qt (C++) : PyQt, PySide.\r\n\r\n## Usage\r\n\r\n```bash\r\npip install activity_calendar_widget\r\n```\r\n\r\n```python\r\nfrom PySide6.QtWidgets import *\r\nfrom PySide6.QtCore import *\r\nfrom activity_calendar_widget import *\r\n\r\n\r\nclass MainWidget(QWidget):\r\n def __init__(self):\r\n super().__init__()\r\n\r\n lay = QVBoxLayout(self)\r\n\r\n self.acw = ActivityCalendarWidget(\r\n title=\"Activity\",\r\n default_activities={\r\n \"03-2024\": {\r\n 2: \"Event on day 2\",\r\n 4: \"Event on day 4\",\r\n 6: \"Event on day 6\",\r\n 10: \"Event on day 10\",\r\n 11: \"Event on day 11\",\r\n 17: \"Event on day 17\",\r\n 20: \"Event on day 20\",\r\n 25: \"Event on day 25\",\r\n 26: \"Event on day 26\",\r\n 27: \"Event on day 27\",\r\n 31: \"Event on day 31\",\r\n },\r\n \"04-2024\": {\r\n 2: \"Event on day 2\",\r\n 6: \"Event on day 6\",\r\n 9: \"Event on day 9\",\r\n 10: \"Event on day 10\",\r\n 11: \"Event on day 11\",\r\n 17: \"Event on day 17\",\r\n 26: \"Event on day 26\",\r\n 31: \"Event on day 31\",\r\n },\r\n },\r\n # default_month=datetime(2022, 1, 1)\r\n )\r\n s = 400\r\n self.acw.setMinimumSize(s, s)\r\n self.acw.setMaximumSize(s, s)\r\n lay.addWidget(self.acw, 1, Qt.AlignmentFlag.AlignCenter)\r\n\r\n\r\nclass Application(QApplication):\r\n def __init__(self) -> None:\r\n super().__init__([])\r\n\r\n self.win = MainWidget()\r\n # self.win = QColorDialog()\r\n # self.win.currentColorChanged.connect(lambda c: print(c))\r\n self.win.setWindowTitle(\"Activity Calendar\")\r\n self.win.setMinimumSize(500, 500)\r\n self.win.show()\r\n\r\n\r\napp = Application()\r\n\r\napp.exec()\r\n\r\n```\r\n\r\n## Figma Link\r\n\r\nhttps://www.figma.com/community/file/1153390420369492172\r\n\r\ncredits to [Lindsay](https://www.figma.com/@lho)\r\n\r\n## Images\r\n\r\n- ![Image 1](img1.png)\r\n- ![Image 2](img2.png)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A PySide6 based activity calendar widget",
"version": "0.3",
"project_urls": {
"Bug Reports": "https://github.com/prmpsmart/activity_calendar_widget/issues",
"Documentation": "https://github.com/prmpsmart/activity_calendar_widget/blob/main/readme.md",
"Homepage": "https://github.com/prmpsmart/activity_calendar_widget",
"Source": "https://github.com/prmpsmart/activity_calendar_widget"
},
"split_keywords": [
"activity",
"calendar",
"widget",
"python",
"setuptools"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e41783d1d6b4dc83bdc93dca44be8d51aec76eae9979443fa70231832a726e40",
"md5": "2047998a8c1d9cd01bfba7794fe02c86",
"sha256": "4859e2a8e4ed9f17e071b7d7766d3bf04b9ba3c9673140793839999f9211fe95"
},
"downloads": -1,
"filename": "activity_calendar_widget-0.3.tar.gz",
"has_sig": false,
"md5_digest": "2047998a8c1d9cd01bfba7794fe02c86",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 17285,
"upload_time": "2024-03-05T15:13:57",
"upload_time_iso_8601": "2024-03-05T15:13:57.034077Z",
"url": "https://files.pythonhosted.org/packages/e4/17/83d1d6b4dc83bdc93dca44be8d51aec76eae9979443fa70231832a726e40/activity_calendar_widget-0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-05 15:13:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "prmpsmart",
"github_project": "activity_calendar_widget",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "activity-calendar-widget"
}