diff options
Diffstat (limited to 'entry.py')
-rw-r--r-- | entry.py | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |