Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Tkinter import *
- root = Tk()
- root.title("simpleGUI")
- w, h = root.winfo_screenwidth(), root.winfo_screenheight()
- root.overrideredirect(1)
- root.geometry("%dx%d+0+0" % (w, h))
- root.configure(background='black')
- app = Frame(root)
- app.grid()
- box1 = Text(root, height=15, width=35, bg="black", fg="white", bd=1)
- box1.place(x=400, y=60)
- box1.insert(END, "Hello \nHey \nWhat's up?")
- box1.config(font="timesnewroman 20 bold", fg="red")
- box1.config(state=DISABLED)
- next= Button(root, text="pretty good")
- next.place(x=200,y=600)
- next.config(height=5, width=30)
- one= Button(root, text="Option one")
- one.place(x=450, y=600)
- one.config(height=5, width=30)
- two= Button(root, text="Option two")
- two.place(x=700, y=600)
- two.config(height=5, width=30)
- three= Button(root, text="Option three")
- three.place(x=950, y=600)
- three.config(height=5, width=30)
- exit= Button(root, text="Exit", command=root.destroy)
- exit.place(x=650, y=710)
- exit.config(height=2, width= 5)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement