Guest User

Untitled

a guest
Jul 15th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. from tkinter import *
  2. from tkinter import messagebox
  3. import time
  4.  
  5. jan = Tk()
  6. jan.title('KNOM OS')
  7. jan.geometry('1366x760+0+0')
  8. jan.configure(background="lightgrey")
  9. #=========FRAMES===============
  10. Top = Frame(jan, bg="#4169E1", width=1366, height=75, bd=3, relief="raise")
  11. Top.pack(side=TOP)
  12.  
  13. Left = Frame(jan,bg="#B0C4DE", width=300, height=650, bd=3, relief="raise")
  14. Left.pack(side=LEFT)
  15.  
  16. Right = Frame(jan,bg="#B0C4DE", width=450, height=650, bd=3, relief="raise")
  17. Right.pack(side=RIGHT)
  18.  
  19.  
  20. tit = Label(jan, text="FriendBook", bg="#4169E1", fg="white", font=("Century
  21. Gothic", 20))
  22. tit.place(x=600, y=15)
  23.  
  24. pi = Button(jan, text="Pagina Inicial", bg="#4169E1",bd=0, fg="white", font=
  25. ("Sans Serif", 12))
  26. pi.place(x=1000, y=30)
  27.  
  28. bar = Label(jan, text="|", bg="#4169E1", fg="white")
  29. bar.place(x=1125, y=32)
  30.  
  31. mr = Button(jan, text="Mural", bg="#4169E1",bd=0, fg="white", font=("Sans
  32. Serif", 12))
  33. mr.place(x=1150, y=30)
  34.  
  35. tab = Button(jan, text="=", bg="#4169E1",bd=0, fg="white", font=("Sans
  36. Serif", 25))
  37. tab.place(x=1300, y=5)
  38.  
  39. textField = Text(jan, width=75, height=10)
  40. textField.place(x=305, y=100)
  41.  
  42. def comp():
  43. t =textField.get(0.0, END)
  44.  
  45. a = Frame(jan, bg="lightgrey", width=600, height=200, bd=1, relief="raise")
  46. a.place(x=305, y=330)
  47. b = Frame(jan, bg="lightgrey", width=600, height=75, bd=1, relief="raise")
  48. b.place(x=305, y=455)
  49.  
  50. env = Button(jan, text="Compartilhar",bg="lightgreen", fg="white", bd=0,
  51. font=("Arial", 15), command=comp)
  52. env.place(x=305, y=280)
  53.  
  54.  
  55. jan.mainloop()
Add Comment
Please, Sign In to add comment