From 8650e59af3ecc0d77615f1f4fd2a8b78db6232d0 Mon Sep 17 00:00:00 2001 From: Louie S Date: Sat, 16 Sep 2023 09:36:14 -0400 Subject: fix alt_due_date not drawing --- dist/assignment-list-0.0.1.linux-x86_64.tar.gz | Bin 22515 -> 0 bytes dist/assignment_list-0.0.1-py3.6.egg | Bin 35127 -> 0 bytes setup.py | 1 + src/entry.py | 6 +++++- 4 files changed, 6 insertions(+), 1 deletion(-) delete mode 100644 dist/assignment-list-0.0.1.linux-x86_64.tar.gz delete mode 100644 dist/assignment_list-0.0.1-py3.6.egg mode change 100644 => 100755 setup.py diff --git a/dist/assignment-list-0.0.1.linux-x86_64.tar.gz b/dist/assignment-list-0.0.1.linux-x86_64.tar.gz deleted file mode 100644 index f93884c..0000000 Binary files a/dist/assignment-list-0.0.1.linux-x86_64.tar.gz and /dev/null differ diff --git a/dist/assignment_list-0.0.1-py3.6.egg b/dist/assignment_list-0.0.1-py3.6.egg deleted file mode 100644 index b339413..0000000 Binary files a/dist/assignment_list-0.0.1-py3.6.egg and /dev/null differ diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index 6068493..36f7fe7 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from setuptools import setup setup() diff --git a/src/entry.py b/src/entry.py index addc96a..2a50cfd 100644 --- a/src/entry.py +++ b/src/entry.py @@ -1,4 +1,4 @@ -from datetime import date, datetime +from datetime import date from PyQt5.QtCore import Qt from PyQt5.QtGui import QFont from PyQt5.QtWidgets import QHBoxLayout, QLabel @@ -45,6 +45,10 @@ class Entry: self.due.day(), self.due.year() )) + elif self.due_alt: + body.setText("{0}: ".format( + self.due_alt + )) if self.link: body.setOpenExternalLinks(True) body.setText(body.text() + "".format( -- cgit