Advertisement
Guest User

Untitled

a guest
Oct 7th, 2023
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. import pandas as pd
  2. from tkinter import *
  3. #Varriables of functions
  4. People = []
  5. Crimes = []
  6.  
  7. Win = None
  8. TextBox = "dd"
  9. count = 0
  10. #Button Fucntions
  11.  
  12.  
  13. def EnBT():
  14. global TextBox
  15. global People
  16. global GetIt
  17. global Txtd
  18. global count
  19. GetIt = TextBox.get()
  20. People.append(GetIt)
  21. print(People)
  22. count += 1
  23. CLT()
  24.  
  25.  
  26.  
  27.  
  28. def DTex():
  29. global TextBox
  30. TextBox = Entry()
  31. TextBox.pack(side=RIGHT)
  32.  
  33.  
  34. def CLT():
  35. global GetIt
  36. TextBox.delete(0,END)
  37. #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
  38.  
  39. def Names():
  40. Felons = Label(Win, text="Enter the name of felon")
  41. Felons.pack(side=RIGHT)
  42.  
  43.  
  44.  
  45.  
  46. def Main():
  47. global Win
  48. global People
  49. Win = Tk()
  50. Win.geometry("350x400")
  51. Enter = Button(Win, text="Enter",command = EnBT)
  52. Enter.pack(side=RIGHT)
  53. DTex()
  54. mainloop()
  55. while count < 3:
  56. Names()
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Main()
  64.  
  65.  
  66.  
  67.  
  68.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement