Answers for "tkinter expand entry while typing"

11

tkinter entry

from tkinter import *
root = Tk()
entry = Entry(root)
print(entry.get()) # Would print entry data in CL
Posted by: Guest on March-26-2020
0

calling a function in python upon entry content changing tkinter

from tkinter import *

root = Tk()
sv = StringVar()

def callback():
    print(sv.get())
    return True

e = Entry(root, textvariable=sv, validate="focusout", validatecommand=callback)
e.grid()
e = Entry(root)
e.grid()
root.mainloop()
Posted by: Guest on April-22-2020

Browse Popular Code Answers by Language