aenaveen

Printer GUI

Sep 5th, 2019
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.92 KB | None | 0 0
  1. import tkinter as tk
  2.  
  3. HEIGHT = 480
  4. WIDTH = 320
  5.  
  6. root = tk.Tk()
  7.  
  8. canvas = tk.Canvas(root,height=HEIGHT,width=WIDTH)
  9. canvas.pack()
  10.  
  11. menuframe = tk.Frame(root,bg='#272727')
  12. menuframe.place(relx=0.5,rely=0,relwidth=1,relheight=0.1,anchor='n')
  13.  
  14. paytmframe = tk.Frame(root,bg="#1a4080")
  15. paytmframe.place(relx=0,rely=0.1,relheight=0.9,relwidth=0.5,anchor='nw')
  16. paytmlabel=tk.Label(paytmframe,text="PayTm",bg="#012B72",font=("Helvetica 14 bold"),fg="white")
  17. paytmlabel.place(relx=0,rely=0,relwidth=1,relheight=0.05)
  18.  
  19. phonepeframe = tk.Frame(root,bg="#673AB7")
  20. phonepeframe.place(relx=0.5,rely=0.1,relheight=0.9,relwidth=0.5,anchor='nw')
  21. phonepelabel=tk.Label(phonepeframe,text="PhonePe",bg="#522F93",font=("Helvetica 14 bold"),fg="white")
  22. phonepelabel.place(relx=0,rely=0,relwidth=1,relheight=0.05)
  23.  
  24. #root.wm_attributes('-fullscreen','true') #for fullscreen
  25. #root.overrideredirect(True)#removes title bar
  26. root.mainloop()
Add Comment
Please, Sign In to add comment