Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- from tkinter import *
- #Varriables of functions
- People = []
- Crimes = []
- Win = None
- TextBox = "dd"
- count = 0
- #Button Fucntions
- def EnBT():
- global TextBox
- global People
- global GetIt
- global Txtd
- global count
- GetIt = TextBox.get()
- People.append(GetIt)
- print(People)
- count += 1
- CLT()
- def DTex():
- global TextBox
- TextBox = Entry()
- TextBox.pack(side=RIGHT)
- def CLT():
- global GetIt
- TextBox.delete(0,END)
- #This needs to be TEXTBOX.Delete and not GETIT.delte because you aere not clearing the value to Getit, you are clearing the textbox. TextBox is the litteral window that we are entering text. Not Getit
- def Names():
- Felons = Label(Win, text="Enter the name of felon")
- Felons.pack(side=RIGHT)
- def Main():
- global Win
- global People
- Win = Tk()
- Win.geometry("350x400")
- Enter = Button(Win, text="Enter",command = EnBT)
- Enter.pack(side=RIGHT)
- DTex()
- mainloop()
- while count < 3:
- Names()
- Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement