System of A Supermarket
System of A Supermarket
Supermarket
Understanding how to create a billing retail system for a supermarket
using Python
Table of contents
1 2
Introduction Presentation
What is the system of a The code to a system of a
supermarket
supermarket ? and how is it
helpful ?
3
Breaking down
the code
Breaking down the code into
smaller parts
We need to divide the content →
Root = Tk()
root.geometry("900×580+0+0+0")
root.title("SYSTEM OF A SUPERMARKET")
costofchips = coc*5
costofbread = cob*3
costofcheese = coch*10
costoforangejuice = coora*15
costofrice = cor*5
costofmeat = com*20
Cost.set (costofTotalItems)
Tax.set (Paidtax)
Subtotal.set ( costofTotalItems)
Total.set (OverAllCost)
Def qexit ():
root.destroy()
IblBread = Label (fl, font = ("aria", 16, "bold"), text= "Bread" , fg="blue", bd=10,
anchor="w")
IblBread.grid (row=2, column=1)
TxtBread = Entry (fl, font = ("Arial", 16, "bold"), textvariable = Bread, bd=6,
insertwidth=4, justify="right")
TxtBread.grid (row=2, column=1)
IblCheese = Label (fl, font = ("aria", 16, "bold"), text= "Cheese" , fg="blue", bd=10, anchor="w")
IblCheese.grid (row=3, column=1)
TxtCheese = Entry (fl, font = ("Arial", 16, "bold"), textvariable = Cheese, bd=6, insertwidth=4,
justify="right")
txtCheese.grid (row=3, column=1)
IblOrange_juice = Label (fl, font = ("aria", 16, "bold"), text= "Orange juice" , fg="blue", bd=10,
anchor="w")
IblOrange_juice.grid (row=4, column=1)
TxtOrange_juice = Entry (fl, font = ("Arial", 16, "bold"), textvariable = Orange juice, bd=6,
insertwidth=4, justify="right")
txtOrange_juice.grid (row=4, column=1)
IblRice = Label (fl, font = ("aria", 16, "bold"), text= "Rice" , fg="blue", bd=10, anchor="w")
IblRice.grid (row=5, column=1)
TxtRice = Entry (fl, font = ("Arial", 16, "bold"), textvariable = Rice, bd=6, insertwidth=4, justify="right")
txtRice.grid (row=5, column=1)
IblMeat = Label (fl, font = ("aria", 16, "bold"), text= "Rice" , fg="blue", bd=10, anchor="w")
IblMeat.grid (row=6, column=1)
TxtMeat = Entry (fl, font = ("Arial", 16, "bold"), textvariable = Meat, bd=6, insertwidth=4, justify="right")
txtMeat.grid (row=6, column=1)
Cost = Label (fl, font = ("aria", 16, "bold"), text = "cost", fg="black", bd= 10, anchor, "w"):
Cost.grid (row=3, column=2)
Cost = Entry (fl, font = ("arial", 16, "bold") , textvariable = cost, bd=6, insertwidth = 4, bg="white",
justify="night")
Cost.grid (row=3, column2)
Tax = Label (fl, font = ("aria", 16, "bold"), text = "Tax", fg="black", bd= 10, anchor, "w"):
Tax.grid (row=4, column=2)
Cost = Entry (fl, font = ("arial", 16, "bold") , textvariable = tax, bd=6, insertwidth = 4, bg="white",
justify="night")
Tax.grid (row=4, column2)
Subtotal = Label (fl, font = ("aria", 16, "bold"), text = "Subtotal", fg="black", bd= 10, anchor, "w"):
Subtotal.grid (row=5, column=2)
Subtotal = Entry (fl, font = ("arial", 16, "bold") , textvariable = Subtotal, bd=6, insertwidth = 4,
bg="white", justify="night")
Subtotal.grid (row=5, column2)
Total = Label (fl, font = ("aria", 16, "bold"), text = "Total", fg="black", bd= 10, anchor, "w"):
Total.grid (row=6, column=2)
Total = Entry (fl, font = ("arial", 16, "bold") , textvariable = Total, bd=6, insertwidth = 4,
bg="white", justify="night")
Total.grid (row=6, column2)