Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. from Tkinter import *
  2.  
  3. root = Tk()
  4.  
  5. root.title("simpleGUI")
  6. w, h = root.winfo_screenwidth(), root.winfo_screenheight()
  7. root.overrideredirect(1)
  8. root.geometry("%dx%d+0+0" % (w, h))
  9. root.configure(background='black')
  10.  
  11. app = Frame(root)
  12. app.grid()
  13.  
  14. box1 = Text(root, height=15, width=35, bg="black", fg="white", bd=1)
  15. box1.place(x=400, y=60)
  16. box1.insert(END, "Hello \nHey \nWhat's up?")
  17. box1.config(font="timesnewroman 20 bold", fg="red")
  18. box1.config(state=DISABLED)
  19.  
  20. next= Button(root, text="pretty good")
  21. next.place(x=200,y=600)
  22. next.config(height=5, width=30)
  23.  
  24. one= Button(root, text="Option one")
  25. one.place(x=450, y=600)
  26. one.config(height=5, width=30)
  27.  
  28. two= Button(root, text="Option two")
  29. two.place(x=700, y=600)
  30. two.config(height=5, width=30)
  31.  
  32. three= Button(root, text="Option three")
  33. three.place(x=950, y=600)
  34. three.config(height=5, width=30)
  35.  
  36. exit= Button(root, text="Exit", command=root.destroy)
  37. exit.place(x=650, y=710)
  38. exit.config(height=2, width= 5)
  39.  
  40. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement