summaryrefslogtreecommitdiff
path: root/entry.py
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-09-16 09:36:14 -0400
committerLouie S <louie@example.com>2023-09-16 09:36:14 -0400
commite89fd9cb4e88aa8f27f40c5c5073feb1a3aa1ce3 (patch)
tree3c9b0bb7b1c13224784ff7829bc42dac222495d3 /entry.py
parent5648157daee278795ccdd766f0b27f59a7331286 (diff)
Basic dummy body layout
Diffstat (limited to 'entry.py')
-rw-r--r--entry.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/entry.py b/entry.py
index 3dadb5e..b2877cc 100644
--- a/entry.py
+++ b/entry.py
@@ -1,3 +1,7 @@
+import time
+from PyQt5.QtCore import Qt
+from PyQt5.QtGui import QFont
+from PyQt5.QtWidgets import QLabel
class Entry:
def __init__(self, desc, due = "", due_alt = "", link = ""):
@@ -6,3 +10,15 @@ class Entry:
self.due_alt = due_alt
self.link = link
self.done = False
+
+ def buildLayout(self):
+ output = QLabel()
+ output.setTextInteractionFlags(Qt.TextSelectableByMouse)
+ output.setFont(QFont("Arial", 11))
+
+ output.setText("- ")
+ if(self.due):
+ output.setText(output.text() + time.strftime("%m/%d/%y: "))
+ output.setText(output.text() + self.desc)
+
+ return output