Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. from tkinter import *
  2. import tkinter.font as font
  3.  
  4. main = Tk()
  5. main.title("Welcome from frame testing")
  6. main.geometry("330x270")
  7. main.resizable(0, 0)
  8.  
  9. # FFrame = Frame(main)
  10. # FFrame.grid(row=1,column=0,sticky=W)
  11.  
  12. # SFrame = Frame(main)
  13. # SFrame.grid(row=1,column=1,sticky=W)
  14. Label(main, text="Welcome from image detecter.....\n").grid(row=0, column=1, sticky=W)
  15.  
  16. Label(main, text=" ").grid(row=0, column=0, sticky=W)
  17. def first():
  18. print("hello")
  19. Button(main, text="upload Image", width=15, command=first).grid(row=1, column=1, sticky=W)
  20.  
  21. #Label(main, text="").grid(row=1, column=1, sticky=W)
  22.  
  23. def second():
  24. print("hello")
  25. Button(main, text="Detect Image", width=15, command=second).grid(row=1, column=2, sticky=W)
  26.  
  27. Label(main, text="\n").grid(row=2, column=1, sticky=W)
  28. Label(main, text="\n\n\n").grid(row=3, column=1, sticky=W)
  29. Label(main, text="\n").grid(row=4, column=1, sticky=W)
  30.  
  31. def te():
  32. exit()
  33. Button(main, text="exit", width=15, command=te).grid(row=5, column=2, sticky=W)
  34.  
  35. main.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement