On 31/05/2019 20:08, sakshamrahej...@gmail.com wrote:
NOT WORKING IN MINE PLZ HELP
from tkinter import *
g=Tk()
^^
g.geometry("{0}x{1}+0+0".format(g.winfo_screenwidth(), g.winfo_screenheight()))
g.title("Check")
g.configure(background='powder blue')
def clear_search(event):
e1.delete(0, tk.END)
^^
e1=Entry(g)
e1.insert(0,'username')
e1.pack()
e1.bind("<Button-1>", clear_search)
e1.bind("<FocusIn>", clear_search)
g.mainloop()
Spot the difference between the identifiers I underlined. If you run
this from the command line, the traceback tells you exactly what is
going on.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list