Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- HEIGHT = 480
- WIDTH = 320
- root = tk.Tk()
- canvas = tk.Canvas(root,height=HEIGHT,width=WIDTH)
- canvas.pack()
- menuframe = tk.Frame(root,bg='#272727')
- menuframe.place(relx=0.5,rely=0,relwidth=1,relheight=0.1,anchor='n')
- paytmframe = tk.Frame(root,bg="#1a4080")
- paytmframe.place(relx=0,rely=0.1,relheight=0.9,relwidth=0.5,anchor='nw')
- paytmlabel=tk.Label(paytmframe,text="PayTm",bg="#012B72",font=("Helvetica 14 bold"),fg="white")
- paytmlabel.place(relx=0,rely=0,relwidth=1,relheight=0.05)
- phonepeframe = tk.Frame(root,bg="#673AB7")
- phonepeframe.place(relx=0.5,rely=0.1,relheight=0.9,relwidth=0.5,anchor='nw')
- phonepelabel=tk.Label(phonepeframe,text="PhonePe",bg="#522F93",font=("Helvetica 14 bold"),fg="white")
- phonepelabel.place(relx=0,rely=0,relwidth=1,relheight=0.05)
- #root.wm_attributes('-fullscreen','true') #for fullscreen
- #root.overrideredirect(True)#removes title bar
- root.mainloop()
Add Comment
Please, Sign In to add comment