Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- count = 0
- def Labels():
- LabTx = StringVar()
- Lab = Label(Win, textvariable = LabTx)
- Lab.pack(side=RIGHT)
- if count >= 3:
- Lab.set("Enter the name of crime")
- def CLT():
- global GetIt
- TextBox.delete(0,END)
- def EnBT():
- global count
- global TextBox
- global GetIt
- GetIt = TextBox.get()
- count += 1
- print("ihh")
- CLT()
- def DTex():
- global TextBox
- TextBox = Entry()
- TextBox.pack(side=RIGHT)
- Win = Tk()
- Win.geometry("350x400")
- Enter = Button(Win, text="Enter",command = EnBT)
- Enter.pack(side=RIGHT)
- DTex()
- Label()
- Win.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement