def __init__(self): logging.debug('Initializing Data class') self.DueDate = DueDate() self.Reminder = Reminder() self.Note = Note() self.ID = 'Database' self.dbDict = { 'Database':{ 'DueDate':{ DueDate.returndDict() }, 'Reminder':{ Reminder.returnrDict() }, 'Note':{ Note.returnnDict() } } }
from note import Note a = Note() a.setNote("Hello, this is a testing script. Looking, writing, and testing") print("Printing Dictionary-", a.returnnDict()) print("Printing Dictionary-", a.returnNote()) a.setNote("Hello, this is a testing set script. Looking, writing, and changing") print("Printing Dictionary-", a.returnnDict()) print("Printing Dictionary-", a.returnNote()) b = "Hello, I am string" a.setNote(b) print("Printing Dictionary-", a.returnnDict()) print("Printing Dictionary-", a.returnNote())