Quest log - removing stuff from there.[SOLVED]
Posted: Sat Oct 14, 2023 6:21 pm
Hello guys,
I have kind of quest log, which is organized as Calendar.
This is the code:
class Calendar():
--- def __init__(self, date, text, status):
----------self.date = date
----------self.text = text
----------self.status = status #"planned", completed, failed
# creation of the new Note in the Calendar (quest log)
def CreateNewCalendarNotify(date, text, status):
-----calendar_notify[date].append(Calendar(date, text, status))
Status is needed for different displaying. Displaying works fine.
When I need to add the text, I write in the script:
$ CreateNewCalendarNotify("2", "I met Victor.", "completed")
So, I can create different notifications with different status. But I cannot change status of already created notifications. How to do that?
Or It would also be ok, If I could just remove thenotification I do not need any more. How to delete them from my Calendar? I can create only...
I have kind of quest log, which is organized as Calendar.
This is the code:
class Calendar():
--- def __init__(self, date, text, status):
----------self.date = date
----------self.text = text
----------self.status = status #"planned", completed, failed
# creation of the new Note in the Calendar (quest log)
def CreateNewCalendarNotify(date, text, status):
-----calendar_notify[date].append(Calendar(date, text, status))
Status is needed for different displaying. Displaying works fine.
When I need to add the text, I write in the script:
$ CreateNewCalendarNotify("2", "I met Victor.", "completed")
So, I can create different notifications with different status. But I cannot change status of already created notifications. How to do that?
Or It would also be ok, If I could just remove thenotification I do not need any more. How to delete them from my Calendar? I can create only...