Aug-04-2017, 05:15 AM
so i have an entry box when i enter something into it and press enter it will print the value. when the function which i am binding into is in same python file then it is working but how i can bind entry_box to function in another file . i tried it but it doesn't seem to work. here is my code
1 2 3 4 5 6 7 8 9 |
from tkinter import * import two root = Tk() entry_var = StringVar() entry_box = Entry(root) entry_box.bind( "<Return>" , lambda entry_var:two.function) entry_box.pack() root.mainloop() |