How to Create a Restaurant Management System Using Python
How to Create a Restaurant Management System Using Python
Hello coder, welcome to the codewithrandom blog. In this blog, we will learn how to build a Restaurant Management System Using Python built-in Tkinter library. Restaurant Management System Using Python is a software application that helps restaurant owners and managers manage various aspects of their business, such as orders, menus, tables, employees, and inventory.
Tkinter : Tkinter is a standard Python library for creating graphical user interfaces (GUIs). It provides a set of tools for creating windows, buttons, menus, and other widgets.
To create a Restaurant Management System Using Python in Tkinter, we need to perform the following steps:
For this Restaurant Management System Using Python project, we need to install Tkinter GUI. You can install these packages in your terminal.
$ pip install tk
step 1: open any python code Editor.
step 2: Importing the Required Modules.

Do you want to learn HTML to React? 🔥
If yes, then here is our Master HTML to React 📚 In this eBook, you’ll Get Complete Free Hand Written Notes on HTML, CSS, JavaScript, and React 💪. It includes 450 Projects with source code. and 250+ Most Asked Interview Questions
Get your eBook now! 👇
from tkinter import* import random import time import datetime
step 3: Copy the code for the Restaurant Management System using Python, which I provided Below in this article, and save it in a file named “main.py” (or any other name you prefer).
step 4: Run this python file main.py to start the Restaurant Management System.
How to Build a Billing Software Application using python | Python Project
How to Build a Facebook Video Downloader using Python
Complete Source Code For the Restaurant Management System Using Python (copy the code and run )👇👇👇
from tkinter import* import random import time import datetime root=Tk() root.geometry("1600x8000") root.title("Restaurant Management System") Tops=Frame(root, width=1600,relief=SUNKEN) Tops.pack(side=TOP) f1=Frame(root,width=800,height=700,relief=SUNKEN) f1.pack(side=LEFT) localtime=time.asctime(time.localtime(time.time())) lblInfo=Label(Tops,font=('helvetica',50,'bold'),text="HOTEL BLUE WHALE ",fg="Black",bd=10,anchor='w') lblInfo.grid(row=0,column=0) lblInfo=Label(Tops,font=('arial',20,'bold'),text=localtime,fg="Steel Blue",bd=10,anchor='w') lblInfo.grid(row=1,column=0) def Ref(): x=random.randint(10908,500876) randomRef=str(x) rand.set(randomRef) f=open("tanmay.txt","at") if (Fries.get()==""): CoFries=0 else: CoFries=float(Fries.get()) if (Noodles.get()==""): CoNoodles=0 else: CoNoodles=float(Noodles.get()) if (Soup.get()==""): CoSoup=0 else: CoSoup=float(Soup.get()) if (Burger.get()==""): CoBurger=0 else: CoBurger=float(Burger.get()) if (Sandwich.get()==""): CoSandwich=0 else: CoSandwich=float(Sandwich.get()) if (Drinks.get()==""): CoD=0 else: CoD=float(Drinks.get()) CostofFries =CoFries * 140 CostofDrinks=CoD * 65 CostofNoodles = CoNoodles* 90 CostofSoup = CoSoup * 140 CostBurger = CoBurger* 260 CostSandwich=CoSandwich * 300 CostofMeal= "Rs", str('%.2f' % (CostofFries+CostofDrinks+CostofNoodles+CostofSoup+CostBurger+CostSandwich)) PayTax=((CostofFries+CostofDrinks+CostofNoodles+CostofSoup+CostBurger+CostSandwich) * 0.2) TotalCost=(CostofFries+CostofDrinks+CostofNoodles+CostofSoup+CostBurger+CostSandwich) Ser_Charge= ((CostofFries+CostofDrinks+CostofNoodles+CostofSoup+CostBurger+CostSandwich)/99) Service = "Rs", str ('%.2f' % Ser_Charge) OverAllCost ="Rs", str ('%.2f' % (PayTax+TotalCost+Ser_Charge)) to=str(OverAllCost) PaidTax= "Rs", str ('%.2f' % PayTax) f.write(to) Service_Charge.set(Service) Cost.set(CostofMeal) Tax.set(PaidTax) SubTotal.set(CostofMeal) Total.set(OverAllCost) file.write(Cost) file.close() f.close() def qExit(): root.destroy() def Reset(): rand.set("") Fries.set("") Noodles.set("") Soup.set("") SubTotal.set("") Total.set("") Service_Charge.set("") Drinks.set("") Tax.set("") Cost.set("") Burger.set("") Sandwich.set("") rand = StringVar() Fries=StringVar() Noodles=StringVar() Soup=StringVar() SubTotal=StringVar() Total=StringVar() Service_Charge=StringVar() Drinks=StringVar() Tax=StringVar() Cost=IntVar() Burger=StringVar() Sandwich=StringVar() lblReference= Label(f1, font=('arial', 16, 'bold'),text="Reference",bd=16,anchor="w") lblReference.grid(row=0, column=0) txtReference=Entry(f1, font=('arial',16,'bold'),textvariable=rand,bd=10,insertwidth=4,bg="powder blue",justify='right') txtReference.grid(row=0,column=1) lblFries= Label(f1, font=('arial', 16, 'bold'),text="Fries",bd=16,anchor="w") lblFries.grid(row=1, column=0) txtFries=Entry(f1, font=('arial',16,'bold'),textvariable=Fries,bd=10,insertwidth=4,bg="powder blue",justify='right') txtFries.grid(row=1,column=1) lblNoodles= Label(f1, font=('arial', 16, 'bold'),text="Noodles",bd=16,anchor="w") lblNoodles.grid(row=2, column=0) txtNoodles=Entry(f1, font=('arial',16,'bold'),textvariable=Noodles,bd=10,insertwidth=4,bg="powder blue",justify='right') txtNoodles.grid(row=2,column=1) lblSoup= Label(f1, font=('arial', 16, 'bold'),text="Soup",bd=16,anchor="w") lblSoup.grid(row=3, column=0) txtSoup=Entry(f1, font=('arial',16,'bold'),textvariable=Soup,bd=10,insertwidth=4,bg="powder blue",justify='right') txtSoup.grid(row=3,column=1) lblBurger= Label(f1, font=('arial', 16, 'bold'),text="Burger",bd=16,anchor="w") lblBurger.grid(row=4, column=0) txtBurger=Entry(f1, font=('arial',16,'bold'),textvariable=Burger,bd=10,insertwidth=4,bg="powder blue",justify='right') txtBurger.grid(row=4,column=1) lblSandwich= Label(f1, font=('arial', 16, 'bold'),text="Sandwich",bd=16,anchor="w") lblSandwich.grid(row=5, column=0) txtSandwich=Entry(f1, font=('arial',16,'bold'),textvariable=Sandwich,bd=10,insertwidth=4,bg="powder blue",justify='right') txtSandwich.grid(row=5,column=1) lblDrinks= Label(f1, font=('arial', 16, 'bold'),text="Drinks",bd=16,anchor="w") lblDrinks.grid(row=0, column=2) txtDrinks=Entry(f1, font=('arial',16,'bold'),textvariable=Drinks,bd=10,insertwidth=4,bg="powder blue",justify='right') txtDrinks.grid(row=0,column=3) lblCost= Label(f1, font=('arial', 16, 'bold'),text="Cost of Meal",bd=16,anchor="w") lblCost.grid(row=1, column=2) txtCost=Entry(f1, font=('arial',16,'bold'),textvariable=Cost,bd=10,insertwidth=4,bg="powder blue",justify='right') txtCost.grid(row=1,column=3) lblService= Label(f1, font=('arial', 16, 'bold'),text="Service Charge",bd=16,anchor="w") lblService.grid(row=2, column=2) txtService=Entry(f1, font=('arial',16,'bold'),textvariable=Service_Charge,bd=10,insertwidth=4,bg="powder blue",justify='right') txtService.grid(row=2,column=3) lblStateTax= Label(f1, font=('arial', 16, 'bold'),text="State Tax",bd=16,anchor="w") lblStateTax.grid(row=3, column=2) txtStateTax=Entry(f1, font=('arial',16,'bold'),textvariable=Tax,bd=10,insertwidth=4,bg="powder blue",justify='right') txtStateTax.grid(row=3,column=3) lblSubTotal= Label(f1, font=('arial', 16, 'bold'),text="Sub Total",bd=16,anchor="w") lblSubTotal.grid(row=4, column=2) txtSubTotal=Entry(f1, font=('arial',16,'bold'),textvariable=SubTotal,bd=10,insertwidth=4,bg="powder blue",justify='right') txtSubTotal.grid(row=4,column=3) lblTotalCost= Label(f1, font=('arial', 16, 'bold'),text="Total Cost",bd=16,anchor="w") lblTotalCost.grid(row=5, column=2) txtTotalCost=Entry(f1, font=('arial',16,'bold'),textvariable=Total,bd=10,insertwidth=4,bg="powder blue",justify='right') txtTotalCost.grid(row=5,column=3) btnTotal=Button(f1,padx=16,pady=8,bd=16,fg="black",font=('arial',16,'bold'),width=10,text="Total",bg="powder blue",command=Ref).grid(row=7,column=1) btnReset=Button(f1,padx=16,pady=8,bd=16,fg="black",font=('arial',16,'bold'),width=10,text="Reset",bg="powder blue",command=Reset).grid(row=7,column=2) btnExit=Button(f1,padx=16,pady=8,bd=16,fg="black",font=('arial',16,'bold'),width=10,text="Exit",bg="powder blue",command=qExit).grid(row=7,column=3) root.mainloop()
Output for the Restaurant Management System using python 👇👇👇
Conclusion
Hurray! You have successfully Build a restaurant management system using Python. restaurant management system using Python Tkinter is a valuable tool for restaurant owners and managers to manage their operations efficiently. Python Tkinter provides an easy-to-use graphical interface that enables staff and customers to interact with the system effortlessly. Hope you enjoyed building with us! Visit our homepage and you get lot’s of projects💝