I am facing problem with tkinter. I declared root = tkinter.Tk(). Then I want to run a canvas widget in a new thread. Problem is passing root object. Is there any solution?`
root = tkinter.Tk()
def f():
    text = StringVar() 
    scrollView=Label(root,height=1,width=20,bg="white",
    textvariable=text,anchor=NW)
    scrollView.pack()
    scrollString = "This is a test. Woking with pi. This is a great tool for 
    developing any handy device."
    #Time delay between chars, in milliseconds
    for i in range(len(scrollString)+1):
        s = scrollString[i:]
        text.set(s)
        sleep(.1)
        root.update()
t1 = threading.Thread(target=f)
print "Starting thread"
t1.start()