New list per user Entry : <p>I am busy doing a school assignment and i have gotten stuck at this piece of code, any assistance would be greatly appreciated.
Please see the following code:</p>

<pre><code>from tkinter import *

student_list = [['Tom','Information Systems'],['John','Computers'],['Johannes','Information Systems']]

class App(Frame):
    def __init__(self,parent=None,**kw):    
        Frame.__init__(self,master=parent,**kw)
        self.searchValue = StringVar()
    self.searchBox = Entry(self,textvariable=self.searchValue)
    self.searchBox.pack()
    self.resultList = Listbox(self)
    self.resultList.pack()

    self.searchBox.bind('&lt;Return&gt;',self.update)

def update(self,e):
    print("*")
    self.resultList.delete(0,END)
    searchkey = self.searchValue.get()
    for student in student_list:
        if searchkey == student[0]:
            self.resultList.insert(END,str(student))
        elif searchkey == student[1]:
            self.resultList.insert(END,str(student))

if __name__ == '__main__':
    root = Tk()
    app = App(root)
    app.pack()
    root.mainloop()
</code></pre>

<p>Is it possible to create a new list per user entry or any alternate method?</p>
