text: from tkinter import*
  import random
  from datetime import datetime
  import time
  
  root = Tk()
  root.title("POS PROJECT")
  
  Tops = Frame(root,bg="black",width = 1600,height=50)
  Tops.pack(side=TOP)
  
  f1 = Frame(root,width = 900,height=700)
  f1.pack(side=LEFT)
  
  
  #------------------TIME--------------
  localtime=datetime.now().strftime("%d-%a-%Y")
  #-----------------INFO TOP------------
  lblinfo = Label(Tops, font=( 'aria' ,30, 'bold' ),text="SUBWAY POS PROJECT",fg="Black")
  lblinfo.grid(row=0,column=0)
  lblinfo = Label(Tops, font=( 'aria' ,20, ),text=localtime,fg="steel blue")
  lblinfo.grid(row=1,column=0)
  
  
  def Ref():
      x=random.randint(1,100)
      rand.set(str(x))
  
      cof =float(Fries.get())
      colfries= float(Largefries.get())
      cob= float(Burger.get())
      cofi= float(Filet.get())
      cochee= float(Cheese_burger.get())
      codr= float(Drinks.get())
  
      costoffries = cof*100
      costoflargefries = colfries*150
      costofburger = cob*250
      costoffilet = cofi*500
      costofcheeseburger = cochee*300
      costofdrinks = codr*50
  
      costofmeal = "Rs.",'%.2f'% (costoffries +  costoflargefries + costofburger + costoffilet + costofcheeseburger + costofdrinks)
      PayTax=((costoffries +  costoflargefries + costofburger + costoffilet +  costofcheeseburger + costofdrinks)*0.13)
      Totalcost=(costoffries +  costoflargefries + costofburger + costoffilet  + costofcheeseburger + costofdrinks)
      Ser_Charge=((costoffries +  costoflargefries + costofburger + costoffilet + costofcheeseburger + costofdrinks)/99)
      Service="Rs.",str('%.2f'% Ser_Charge)
      OverAllCost="Rs.",str('%.2f'%(PayTax + Totalcost + Ser_Charge))
      PaidTax="Rs.",str('%.2f'% PayTax)
  
      Service_Charge.set(Service)
      cost.set(costofmeal)
      Tax.set(PaidTax)
      Subtotal.set(costofmeal)
      Total.set(OverAllCost)
  
    
  
  def qexit():
      root.destroy()
  
  def reset():
      rand.set("")
      Fries.set("")
      Largefries.set("")
      Burger.set("")
      Filet.set("")
      Subtotal.set("")
      Total.set("")
      Service_Charge.set("")
      Drinks.set("")
      Tax.set("")
      cost.set("")
      Cheese_burger.set("")
  
  
  #---------------------------------------------------------------------------------------
  rand = StringVar()
  Fries = StringVar()
  Largefries = StringVar()
  Burger = StringVar()
  Filet = StringVar()
  Subtotal = StringVar()
  Total = StringVar()
  Service_Charge = StringVar()
  Drinks = StringVar()
  Tax = StringVar()
  cost = StringVar()
  Cheese_burger = StringVar()
  
  
  
  
  
  
  lblreference = Label(f1, font=( 'aria' ,16, 'bold' ),text="Order No.",bd=12)
  lblreference.grid(row=0,column=0)
  txtreference = Entry(f1,font=('ariel' ,16,'bold'), textvariable=rand , insertwidth=6,justify='right')
  txtreference.grid(row=0,column=1)
  
  lblfries = Label(f1, font=( 'aria' ,16, 'bold' ),text=" French Fries ")
  lblfries.grid(row=2,column=0)
  txtfries = Entry(f1,font=('ariel' ,16,'bold'), textvariable=Fries ,insertwidth=4,justify='right')
  txtfries.grid(row=2,column=1)
  
  lblLargefries = Label(f1, font=( 'aria' ,16, 'bold' ),text="Large Fries ")
  lblLargefries.grid(row=3,column=0)
  txtLargefries = Entry(f1,font=('ariel' ,16,'bold'), textvariable=Largefries ,insertwidth=4,justify='right')
  txtLargefries.grid(row=3,column=1)
  
  
  lblburger = Label(f1, font=( 'aria' ,16, 'bold' ),text="Burger ")
  lblburger.grid(row=4,column=0)
  txtburger = Entry(f1,font=('ariel' ,16,'bold'), textvariable=Burger ,insertwidth=4, justify='right')
  txtburger.grid(row=4,column=1)
  
  lblFilet = Label(f1, font=( 'aria' ,16, 'bold' ),text="Pizza ")
  lblFilet.grid(row=5,column=0)
  txtFilet = Entry(f1,font=('ariel' ,16,'bold'), textvariable=Filet , insertwidth=4,justify='right')
  txtFilet.grid(row=5,column=1)
  
  lblCheese_burger = Label(f1, font=( 'aria' ,16, 'bold' ),text="Cheese burger")
  lblCheese_burger.grid(row=6,column=0)
  txtCheese_burger = Entry(f1,font=('ariel' ,16,'bold'), textvariable=Cheese_burger , insertwidth=4 ,justify='right')
  txtCheese_burger.grid(row=6,column=1)
  
  #--------------------------------------------------------------------------------------
  lblDrinks = Label(f1, font=( 'aria' ,16, 'bold' ),text="Drinks",bd=12)
  lblDrinks.grid(row=1,column=0)
  txtDrinks = Entry(f1,font=('ariel' ,16,'bold'), textvariable=Drinks ,insertwidth=4, justify='right')
  txtDrinks.grid(row=1,column=1)
  
  LABEL = Label(f1, font=( 'aria' ,22, 'bold' ),text="RECEIPT")
  LABEL.grid(row=1,column=3)
  
  lblcost = Label(f1, font=( 'aria' ,16, 'bold' ),text="Cost")
  lblcost.grid(row=2,column=2)
  txtcost = Entry(f1,font=('ariel' ,16,'bold'), textvariable=cost ,insertwidth=4,bg="white",bd=10 ,justify='right')
  txtcost.grid(row=2,column=3)
  
  lblService_Charge = Label(f1, font=( 'aria' ,16, 'bold' ),text="Service Charge",bd=10)
  lblService_Charge.grid(row=3,column=2)
  txtService_Charge = Entry(f1,font=('ariel' ,16,'bold'),bd=10, textvariable=Service_Charge ,insertwidth=4 ,justify='right')
  txtService_Charge.grid(row=3,column=3)
  
  lblTax = Label(f1, font=( 'aria' ,16, 'bold' ),text="Tax",bd=10)
  lblTax.grid(row=4,column=2)
  txtTax = Entry(f1,font=('ariel' ,16,'bold'), textvariable=Tax ,insertwidth=4,justify='right',bd=10)
  txtTax.grid(row=4,column=3)
  
  lblSubtotal = Label(f1, font=( 'aria' ,16, 'bold' ),text="Subtotal",bd=10)
  lblSubtotal.grid(row=5,column=2)
  txtSubtotal = Entry(f1,font=('ariel' ,16,'bold'), textvariable=Subtotal ,bd=10, insertwidth=4,justify='right')
  txtSubtotal.grid(row=5,column=3)
  
  lblTotal = Label(f1, font=( 'aria' ,16, 'bold' ),text="Total",bd=10)
  lblTotal.grid(row=6,column=2)
  txtTotal = Entry(f1,font=('ariel' ,16,'bold'), textvariable=Total ,insertwidth=4,bd=10,justify='right')
  txtTotal.grid(row=6,column=3)
  
  #-----------------------------------------buttons------------------------------------------
  lblTotal = Label(f1,text="---------------------",fg="white")
  lblTotal.grid(row=7,columnspan=3)
  
  btnTotal=Button(f1, bd=10 ,fg="black",font=('ariel' ,16,'bold'),width=10, text="TOTAL", bg="red",command=Ref)
  btnTotal.grid(row=8, column=1)
  
  btnreset=Button(f1, bd=10 ,fg="black",font=('ariel' ,16,'bold'),width=10, text="RESET", bg="red",command=reset)
  btnreset.grid(row=8, column=2)
  
  btnexit=Button(f1, bd=10 ,fg="black",font=('ariel' ,16,'bold'),width=10, text="EXIT", bg="red",command=qexit)
  btnexit.grid(row=8, column=3)
  
  
  
  
  
  def price():
      roo = Tk()
      roo.geometry("600x220+0+0")
      roo.title("Price List")
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="ITEM", fg="black", bd=5)
      lblinfo.grid(row=0, column=0)
      lblinfo = Label(roo, font=('aria', 15,'bold'), text="_____________", fg="white")
      lblinfo.grid(row=0, column=2)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="PRICE", fg="black")
      lblinfo.grid(row=0, column=3)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="French Fries", fg="steel blue")
      lblinfo.grid(row=1, column=0)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="100", fg="steel blue")
      lblinfo.grid(row=1, column=3)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Large French fries ", fg="steel blue")
      lblinfo.grid(row=2, column=0)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="150", fg="steel blue")
      lblinfo.grid(row=2, column=3)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Burger ", fg="steel blue")
      lblinfo.grid(row=3, column=0)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="250", fg="steel blue")
      lblinfo.grid(row=3, column=3)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Pizza ", fg="steel blue")
      lblinfo.grid(row=4, column=0)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="500", fg="steel blue")
      lblinfo.grid(row=4, column=3)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Cheese Burger", fg="steel blue")
      lblinfo.grid(row=5, column=0)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="300", fg="steel blue")
      lblinfo.grid(row=5, column=3)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="Drinks", fg="steel blue")
      lblinfo.grid(row=6, column=0)
      lblinfo = Label(roo, font=('aria', 15, 'bold'), text="50", fg="steel blue")
      lblinfo.grid(row=6, column=3)
  
      roo.mainloop()
  
  
  
  
  btnprice=Button(f1, bd=10 ,fg="black",font=('ariel' ,16,'bold'),width=10, text="PRICE", bg="red",command=price)
  btnprice.grid(row=8, column=0)
  
  
  
  root.mainloop()
  