Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- import tkinter.font as font
- main = Tk()
- main.title("Welcome from frame testing")
- main.geometry("330x270")
- main.resizable(0, 0)
- # FFrame = Frame(main)
- # FFrame.grid(row=1,column=0,sticky=W)
- # SFrame = Frame(main)
- # SFrame.grid(row=1,column=1,sticky=W)
- Label(main, text="Welcome from image detecter.....\n").grid(row=0, column=1, sticky=W)
- Label(main, text=" ").grid(row=0, column=0, sticky=W)
- def first():
- print("hello")
- Button(main, text="upload Image", width=15, command=first).grid(row=1, column=1, sticky=W)
- #Label(main, text="").grid(row=1, column=1, sticky=W)
- def second():
- print("hello")
- Button(main, text="Detect Image", width=15, command=second).grid(row=1, column=2, sticky=W)
- Label(main, text="\n").grid(row=2, column=1, sticky=W)
- Label(main, text="\n\n\n").grid(row=3, column=1, sticky=W)
- Label(main, text="\n").grid(row=4, column=1, sticky=W)
- def te():
- exit()
- Button(main, text="exit", width=15, command=te).grid(row=5, column=2, sticky=W)
- main.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement