Advertisement
Hydrinx

Untitled

May 27th, 2022
599
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import tkinter as tk
  2. from tkinter import BROWSE, filedialog
  3. from tkinter import ttk
  4.  
  5. root = tk.Tk()
  6.  
  7. label = tk.Label(root, text="Project Name:")
  8. label.pack(padx=5, pady=20)
  9.  
  10.  
  11.  
  12. entry1 = tk.Entry(root)
  13. entry1.insert(0, "")
  14. entry1.pack(padx=5, pady=5)
  15.  
  16. label = tk.Label(root, text="Email Address:")
  17. label.pack(padx=5, pady=20)
  18.  
  19. entry2 = tk.Entry(root)
  20. entry2.insert(0, "")
  21. entry2.pack(padx=5, pady=5)
  22.  
  23. label = tk.Label(root, text="Engagement Number:")
  24. label.pack(padx=5, pady=20)
  25.  
  26. entry3 = tk.Entry(root)
  27. entry3.insert(0, "")
  28. entry3.pack(padx=5, pady=5)
  29. label = tk.Label(root, text="Region:")
  30. label.pack(padx=5, pady=20)
  31.  
  32. entry4 = tk.Entry(root)
  33. entry4.insert(0, "")
  34. entry4.pack(padx=5, pady=5)
  35. label = tk.Label(root, text="Area:")
  36. label.pack(padx=5, pady=20)
  37.  
  38. entry5 = tk.Entry(root)
  39. entry5.insert(0, "")
  40. entry5.pack(padx=5, pady=5)
  41.                            
  42.  
  43. button_explore = tk.Button(root,
  44.                         text = "Browse Files",
  45.                         command = BROWSE)
  46.  
  47. button_exit = tk.Button(root,
  48.                      text = "Exit",
  49.                      command = exit)
  50.  
  51. button_explore.pack()
  52. button_exit.pack()
  53.  
  54.  
  55. root.mainloop()
  56.  
Advertisement
RAW Paste Data Copied
Advertisement