I am making a program that will have a box that receives two inputs, an event name and the time allocated for the event, and will later output a list of all the events that have been added. This is the class for the input boxes:

```
class agendaEvent:
    def __init__(self, master):
        self.frame = Frame(master, padx=10, pady=10)
        self.frame.grid()
        self.name = Entry(self.frame)
        self.name.grid(row=1, column=0)
        self.time = Entry(self.frame, width=10)
        self.time.grid(row=1, column=1, padx=5)

```

I am fairly new to programming, but I believe the correct way to store the `name` and `time` would be in a dictionary. 

There could be multiple instances of the class running at the same time and more could run after these have already been stored. It would be preferable to have them all stored in the same dictionary. 

However, I do not know how to store the `self` variables in a dictionary that I could later access outside of the class. Is this possible? If so, how? If not, how could I store the variables in a way that they could be accessed in a separate function?

EDIT: This is the minimal code (I think) needed to replicate my issue:

```
from Tkinter import *
from functools import partial

class agendaEvent:

    def __init__(self, master):
        self.frame = Frame(master, padx=10, pady=10)
        self.frame.grid()
        self.name = Entry(self.frame)
        self.name.grid(row=1, column=0)
        self.time = Entry(self.frame, width=10)
        self.time.grid(row=1, column=1, padx=5)
        self.label1 = Label(self.frame, text="Event Name")
        self.label1.grid(row=0, column=0)
        self.label2 = Label(self.frame, text="Minutes")
        self.label2.grid(row=0, column=1)

def addOne(master):
    this_instance = agendaEvent(master)

def addEvent():
    window = Toplevel()
    addOneButton = Button(window, text='+1', command=partial(addOne, window))
    addOneButton.grid(row=0, column=0, pady=5)
    doneButton = Button(window, text='Done', command=partial(done, window))
    doneButton.grid(row=1, column=0, pady=3)

def done(windowInstance):

    #This is where I was thinking
    #the code for storing information
    #should be because it should store
    #when the done button is pressed.
    #This may not be a good way to do it,
    #I don't know. 

    windowInstance.destroy()
    windowInstance = ""

root = Tk()

addEventButton = Button(root, text="Add Events", command=addEvent)
addEventButton.pack()

root.mainloop()

```