Skip to content
Advertisements

Restaurant Login Systems – 2 (improved)

from tkinter import *
import tkinter.messagebox
import tkinter.ttk
import time
import random
from tkinter import Tk, StringVar, ttk
import tkinter.messagebox
import messagebox


window = Tk()
window.geometry("1520x825+0+0")
window.configure(background="grey17")
window.title("FAST FOOD RESTAURANT-2")
winHood = Frame(window,bg="black",width=1100,height=80,bd=12,relief="raise")
winHood.place(relx=0.0,rely=0.0)
winTitle = Label(winHood,font=("arial",30,"bold"),bg="black",fg="white",
                 text="\t\tFAST FOOD RESTAURANT-2\t")
winTitle.grid(row=0,column=0)

#################################  FRAME ###############################

winSoups = Frame(window,bg="black",width=365,height=400,bd=12,relief="raise")
winSoups.place(relx=0.0,rely=0.1)
winSalad = Frame(window,bg="black",width=365,height=345,bd=12,relief="raise")
winSalad.place(relx=0.0,rely=0.575)
winMainCourse = Frame(window,bg="black",width=360,height=745,bd=12,relief="raise")
winMainCourse.place(relx=0.24,rely=0.1)
winTheDrink= Frame(window,bg="black",width=370,height=400,bd=12,relief="raise")
winTheDrink.place(relx=0.478,rely=0.1)
winDessert = Frame(window,bg="black",width=370,height=400,bd=12,relief="raise")
winDessert.place(relx=0.478,rely=0.575)
winCalculator= Frame(window,bg="black",width=420,height=450,bd=12,relief="raise")
winCalculator.place(relx=0.725,rely=0.0)
winTheBill = Frame(window,bg="black",width=420,height=370,bd=12,relief="raise")
winTheBill.place(relx=0.725,rely=0.575)



####################################  VARIABLE #####################

var1 = IntVar()
var2 = IntVar()
var3 = IntVar()
var4 = IntVar()
var5 = IntVar()
var6 = IntVar()
var7 = IntVar()
var8 = IntVar()
var9 = IntVar()
var10 = IntVar()
var11 = IntVar()
var12 = IntVar()
var13 = IntVar()
var14 = IntVar()
var15 = IntVar()
var16 = IntVar()
var17 = IntVar()
var18 = IntVar()
var19 = IntVar()
var20 = IntVar()
var21 = IntVar()
var22 = IntVar()
var23 = IntVar()
var24 = IntVar()
var25 = IntVar()
var26 = IntVar()
var27 = IntVar()
var28 = IntVar()
var29 = IntVar()
var30 = IntVar()
var31 = IntVar()
var32 = IntVar()
var33 = IntVar()
var34 = IntVar()
var35 = IntVar()
var36 = IntVar()
var37 = IntVar()
var38 = IntVar()
var39 = IntVar()
var40 = IntVar()
var41 = StringVar()
var42 = IntVar()

var1.set(0)
var2.set(0)
var3.set(0)
var4.set(0)
var5.set(0)
var6.set(0)
var7.set(0)
var8.set(0)
var9.set(0)
var10.set(0)
var11.set(0)
var12.set(0)
var13.set(0)
var14.set(0)
var15.set(0)
var16.set(0)
var17.set(0)
var18.set(0)
var19.set(0)
var20.set(0)
var21.set(0)
var22.set(0)
var23.set(0)
var24.set(0)
var25.set(0)
var26.set(0)
var27.set(0)
var28.set(0)
var28.set(0)
var29.set(0)
var30.set(0)
var31.set(0)
var32.set(0)
var33.set(0)
var34.set(0)
var35.set(0)
var36.set(0)
var37.set(0)
var38.set(0)
var39.set(0)
var40.set(0)
var41.set("")
var42.set(0)

# StringVar
vartomatoSoup   = StringVar()
varyogurtSoup   = StringVar()
varchickenSoup  = StringVar()
varturkeySoup   = StringVar()
varravioliSoup  = StringVar()
varpotatoSoup   = StringVar()
varlentilSoup   = StringVar()

varpastaSalad  = StringVar()
varRussianSalad  = StringVar()
varbroccoliSalad   = StringVar()
varshepherdSalad  = StringVar()
vararugulaSalad   = StringVar()
varAmericanSalad   = StringVar()
varcarrotSalad  = StringVar()

varburger   = StringVar()
vardabBurger = StringVar()
varspecialBurger   = StringVar()
vartexasBurger  = StringVar()
varbigsBurger   = StringVar()
varempanadas  = StringVar()
varceviche   = StringVar()
vartaco   = StringVar()
vartostones  = StringVar()
varbuffalo  = StringVar()
varpabellon = StringVar()

varlightCola   = StringVar()
varzeroCola  = StringVar()
varfanta   = StringVar()
varlemonade   = StringVar()
varbuttermilk  = StringVar()
varcola  = StringVar()
varorangeJuice = StringVar()

varcake   = StringVar()
varbutterscotch  = StringVar()
varpudding   = StringVar()
vartarts   = StringVar()
vartiramisu  = StringVar()
varcheesecakes  = StringVar()
varmascarpone = StringVar()

varVat = StringVar()
varPayment = IntVar()
varChange = StringVar()
varSubTotal = StringVar()
varTotal = StringVar()
varTax = StringVar()

# Set
vartomatoSoup.set("0")
varyogurtSoup.set("0")
varchickenSoup.set("0")
varturkeySoup.set("0")
varravioliSoup.set("0")
varpotatoSoup.set("0")
varlentilSoup.set("0")

varpastaSalad.set("0")
varRussianSalad.set("0")
varbroccoliSalad.set("0")
varshepherdSalad.set("0")
vararugulaSalad.set("0")
varAmericanSalad.set("0")
varcarrotSalad.set("0")

varburger.set("0")
vardabBurger.set("0")
varspecialBurger.set("0")
vartexasBurger.set("0")
varbigsBurger.set("0")
varempanadas.set("0")
varceviche.set("0")
vartaco.set("0")
vartostones.set("0")
varpabellon.set("0")
varbuffalo.set("0")

varcola.set("0")
varlightCola.set("0")
varzeroCola.set("0")
varfanta.set("0")
varlemonade.set("0")
varbuttermilk.set("0")
varorangeJuice.set("0")

varcake.set("0")
varbutterscotch.set("0")
varpudding.set("0")
vartarts.set("0")
vartiramisu.set("0")
varcheesecakes.set("0")
varmascarpone.set("0")

varVat.set("")
varPayment.set(" ")
varChange.set("0")
varSubTotal.set("0")
varTotal.set("0")
varTax.set("0")

def iexit():
    qExit = messagebox.askyesno("Fast Food","Do you want to quit?")
    if qExit > 0:
        window.destroy()
        return

def Reset():
    var1.set(0)
    var2.set(0)
    var3.set(0)
    var4.set(0)
    var5.set(0)
    var6.set(0)
    var7.set(0)
    var8.set(0)
    var9.set(0)
    var10.set(0)
    var11.set(0)
    var12.set(0)
    var13.set(0)
    var14.set(0)
    var15.set(0)
    var16.set(0)
    var17.set(0)
    var18.set(0)
    var19.set(0)
    var20.set(0)
    var21.set(0)
    var22.set(0)
    var23.set(0)
    var24.set(0)
    var25.set(0)
    var26.set(0)
    var27.set(0)
    var28.set(0)
    var28.set(0)
    var29.set(0)
    var30.set(0)
    var31.set(0)
    var32.set(0)
    var33.set(0)
    var34.set(0)
    var35.set(0)
    var36.set(0)
    var37.set(0)
    var38.set(0)
    var39.set(0)
    var40.set(0)
    var42.set(0)

    vartomatoSoup.set("0")
    varyogurtSoup.set("0")
    varchickenSoup.set("0")
    varturkeySoup.set("0")
    varravioliSoup.set("0")
    varpotatoSoup.set("0")
    varlentilSoup.set("0")

    varpastaSalad.set("0")
    varRussianSalad.set("0")
    varbroccoliSalad.set("0")
    varshepherdSalad.set("0")
    vararugulaSalad.set("0")
    varAmericanSalad.set("0")
    varcarrotSalad.set("0")

    varburger.set("0")
    vardabBurger.set("0")
    varspecialBurger.set("0")
    vartexasBurger.set("0")
    varbigsBurger.set("0")
    varempanadas.set("0")
    varceviche.set("0")
    vartaco.set("0")
    vartostones.set("0")
    varpabellon.set("0")
    varbuffalo.set("0")

    varcola.set("0")
    varlightCola.set("0")
    varzeroCola.set("0")
    varfanta.set("0")
    varlemonade.set("0")
    varbuttermilk.set("0")
    varorangeJuice.set("0")

    varcake.set("0")
    varbutterscotch.set("0")
    varpudding.set("0")
    vartarts.set("0")
    vartiramisu.set("0")
    varcheesecakes.set("0")
    varmascarpone.set("0")

    varVat.set("")
    varPayment.set(" ")
    varChange.set(" ")
    varSubTotal.set("0")
    varTotal.set("0")
    varTax.set("0")


    txttomatoSoup.configure(state=DISABLED)
    txtyogurtSoup.configure(state=DISABLED)
    txtchickenSoup.configure(state=DISABLED)
    txtturkeySoup.configure(state=DISABLED)
    txtravioliSoup.configure(state=DISABLED)
    txtpotatoSoup.configure(state=DISABLED)
    txtlentilSoup.configure(state=DISABLED)
    txtbroccoliSalad.configure(state=DISABLED)
    txtRussianSalad.configure(state=DISABLED)
    txtpastaSalad.configure(state=DISABLED)
    txtarugulaSalad.configure(state=DISABLED)
    txtAmericanSalad.configure(state=DISABLED)
    txtcarrotSalad.configure(state=DISABLED)
    txtburger.configure(state=DISABLED)
    txtdabBurger.configure(state=DISABLED)
    txtspecialBurger.configure(state=DISABLED)
    txttexasBurger.configure(state=DISABLED)
    txtbigsBurger.configure(state=DISABLED)
    txtempanadas.configure(state=DISABLED)
    txtceviche.configure(state=DISABLED)
    txttaco.configure(state=DISABLED)

    txttostones.configure(state=DISABLED)
    txtpabellon.configure(state=DISABLED)
    txtbuffalo.configure(state=DISABLED)
    txtcola.configure(state=DISABLED)
    txtlightCola.configure(state=DISABLED)
    txtzeroCola.configure(state=DISABLED)
    txtfanta.configure(state=DISABLED)
    txtlemonade.configure(state=DISABLED)
    txtbuttermilk.configure(state=DISABLED)
    txtorangeJuice.configure(state=DISABLED)
    txtcake.configure(state=DISABLED)
    txtbutterscotch.configure(state=DISABLED)
    txtpudding.configure(state=DISABLED)
    txttarts.configure(state=DISABLED)
    txttiramisu.configure(state=DISABLED)
    txtcheesecakes.configure(state=DISABLED)
    txtmascarpone.configure(state=DISABLED)
    txtChange.configure(state=DISABLED)
    txtTax.configure(state=DISABLED)
    txtSubTotal.configure(state=DISABLED)
    txtTotal.configure(state=DISABLED)


####################################  SOUPS #########################

def tomatoSoup():
    if (var1.get()==1):
        txttomatoSoup.configure(state=NORMAL)
        vartomatoSoup.set("")
    elif (var1.get() == 0):
        txttomatoSoup.configure(state=DISABLED)
        vartomatoSoup.set("0")

def yogurtSoup():
    if (var2.get()==1):
        txtyogurtSoup.configure(state=NORMAL)
        varyogurtSoup.set("")
    elif (var2.get() == 0):
        txtyogurtSoup.configure(state=DISABLED)
        varyogurtSoup.set("0")

def chickenSoup():
    if (var3.get()==1):
        txtchickenSoup.configure(state=NORMAL)
        varchickenSoup.set("")
    elif (var3.get() == 0):
        txtchickenSoup.configure(state=DISABLED)
        varchickenSoup.set("0")

def turkeySoup():
    if (var4.get()==1):
        txtturkeySoup.configure(state=NORMAL)
        varturkeySoup.set("")
    elif (var4.get() == 0):
        txtturkeySoup.configure(state=DISABLED)
        varturkeySoup.set("0")

def ravioliSoup():
    if (var5.get()==1):
        txtravioliSoup.configure(state=NORMAL)
        varravioliSoup.set("")
    elif (var5.get() == 0):
        txtravioliSoup.configure(state=DISABLED)
        varravioliSoup.set("0")

def potatoSoup():
    if (var6.get() == 1):
        txtpotatoSoup.configure(state=NORMAL)
        varpotatoSoup.set("")
    elif (var6.get() == 0):
        txtpotatoSoup.configure(state=DISABLED)
        varpotatoSoup.set("0")

def lentilSoup():
    if (var7.get() == 1):
        txtlentilSoup.configure(state=NORMAL)
        varlentilSoup.set("")
    elif (var7.get() == 0):
        txtlentilSoup.configure(state=DISABLED)
        varlentilSoup.set("0")

####################################  SALAD #########################


def pastaSalad():
    if (var8.get()==1):
        txtpastaSalad.configure(state=NORMAL)
        varpastaSalad.set("")
    elif (var8.get() == 0):
        txtpastaSalad.configure(state=DISABLED)
        varpastaSalad.set("0")

def RussianSalad():
    if (var9.get()==1):
        txtRussianSalad.configure(state=NORMAL)
        varRussianSalad.set("")
    elif (var9.get() == 0):
        txtRussianSalad.configure(state=DISABLED)
        varRussianSalad.set("0")

def broccoliSalad():
    if (var10.get()==1):
        txtbroccoliSalad.configure(state=NORMAL)
        varbroccoliSalad.set("")
    elif (var10.get() == 0):
        txtbroccoliSalad.configure(state=DISABLED)
        varbroccoliSalad.set("0")

def shepherdSalad():
    if (var11.get()==1):
        txtshepherdSalad.configure(state=NORMAL)
        varshepherdSalad.set("")
    elif (var11.get() == 0):
        txtshepherdSalad.configure(state=DISABLED)
        varshepherdSalad.set("0")

def arugulaSalad():
    if (var12.get()==1):
        txtarugulaSalad.configure(state=NORMAL)
        vararugulaSalad.set("")
    elif (var12.get() == 0):
        txtarugulaSalad.configure(state=DISABLED)
        vararugulaSalad.set("0")

def AmericanSalad():
    if (var13.get()==1):
        txtAmericanSalad.configure(state=NORMAL)
        varAmericanSalad.set("")
    elif (var13.get() == 0):
        txtAmericanSalad.configure(state=DISABLED)
        varAmericanSalad.set("0")

def carrotSalad():
    if (var14.get()==1):
        txtcarrotSalad.configure(state=NORMAL)
        varcarrotSalad.set("")
    elif (var14.get() == 0):
        txtcarrotSalad.configure(state=DISABLED)
        varcarrotSalad.set("0")

####################################  MAINCOURSE ####################

def burger():
    if (var15.get()==1):
        txtburger.configure(state=NORMAL)
        varburger.set("")
    elif (var15.get() == 0):
        txtburger.configure(state=DISABLED)
        varburger.set("0")

def dabBurger():
    if (var16.get()==1):
        txtdabBurger.configure(state=NORMAL)
        vardabBurger.set("")
    elif (var16.get() == 0):
        txtdabBurger.configure(state=DISABLED)
        vardabBurger.set("0")

def specialBurger():
    if (var17.get()==1):
        txtspecialBurger.configure(state=NORMAL)
        varspecialBurger.set("")
    elif (var17.get() == 0):
        txtspecialBurger.configure(state=DISABLED)
        varspecialBurger.set("0")

def texasBurger():
    if (var18.get()==1):
        txttexasBurger.configure(state=NORMAL)
        vartexasBurger.set("")
    elif (var18.get() == 0):
        txttexasBurger.configure(state=DISABLED)
        vartexasBurger.set("0")

def bigsBurger():
    if (var19.get()==1):
        txtbigsBurger.configure(state=NORMAL)
        varbigsBurger.set("")
    elif (var19.get() == 0):
        txtbigsBurger.configure(state=DISABLED)
        varbigsBurger.set("0")

def empanadas():
    if (var20.get()==1):
        txtempanadas.configure(state=NORMAL)
        varempanadas.set("")
    elif (var20.get() == 0):
        txtempanadas.configure(state=DISABLED)
        varempanadas.set("0")

def ceviche():
    if (var21.get()==1):
        txtceviche.configure(state=NORMAL)
        varceviche.set("")
    elif (var21.get() == 0):
        txtceviche.configure(state=DISABLED)
        varceviche.set("0")

def taco():
    if (var22.get()==1):
        txttaco.configure(state=NORMAL)
        vartaco.set("")
    elif (var22.get() == 0):
        txttaco.configure(state=DISABLED)
        vartaco.set("0")

def tostones():
    if (var23.get()==1):
        txttostones.configure(state=NORMAL)
        vartostones.set("")
    elif (var23.get() == 0):
        txttostones.configure(state=DISABLED)
        vartostones.set("0")

def pabellon():
    if (var24.get()==1):
        txtpabellon.configure(state=NORMAL)
        varpabellon.set("")
    elif (var24.get() == 0):
        txtpabellon.configure(state=DISABLED)
        varpabellon.set("0")

def buffalo():
    if (var25.get()==1):
        txtbuffalo.configure(state=NORMAL)
        varbuffalo.set("")
    elif (var25.get() == 0):
        txtbuffalo.configure(state=DISABLED)
        varbuffalo.set("0")


####################################  DRINK #########################

def cola():
    if (var26.get()==1):
        txtcola.configure(state=NORMAL)
        varcola.set("")
    elif (var26.get() == 0):
        txtcola.configure(state=DISABLED)
        varcola.set("0")

def lightCola():
    if (var27.get()==1):
        txtlightCola.configure(state=NORMAL)
        varlightCola.set("")
    elif (var27.get() == 0):
        txtlightCola.configure(state=DISABLED)
        varlightCola.set("0")

def zeroCola():
    if (var28.get()==1):
        txtzeroCola.configure(state=NORMAL)
        varzeroCola.set("")
    elif (var28.get() == 0):
        txtzeroCola.configure(state=DISABLED)
        varzeroCola.set("0")

def fanta():
    if (var29.get()==1):
        txtfanta.configure(state=NORMAL)
        varfanta.set("")
    elif (var29.get() == 0):
        txtfanta.configure(state=DISABLED)
        varfanta.set("0")

def lemonade():
    if (var30.get()==1):
        txtlemonade.configure(state=NORMAL)
        varlemonade.set("")
    elif (var30.get() == 0):
        txtlemonade.configure(state=DISABLED)
        varlemonade.set("0")

def buttermilk():
    if (var31.get()==1):
        txtbuttermilk.configure(state=NORMAL)
        varbuttermilk.set("")
    elif (var31.get() == 0):
        txtbuttermilk.configure(state=DISABLED)
        varbuttermilk.set("0")

def orangeJuice():
    if (var32.get()==1):
        txtorangeJuice.configure(state=NORMAL)
        varorangeJuice.set("")
    elif (var32.get() == 0):
        txtorangeJuice.configure(state=DISABLED)
        varorangeJuice.set("0")

####################################  DESSERT #######################

def cake():
    if (var33.get()==1):
        txtcake.configure(state=NORMAL)
        varcake.set("")
    elif (var33.get() == 0):
        txtcake.configure(state=DISABLED)
        varcake.set("0")

def butterscotch():
    if (var34.get()==1):
        txtbutterscotch.configure(state=NORMAL)
        varbutterscotch.set("")
    elif (var34.get() == 0):
        txtbutterscotch.configure(state=DISABLED)
        varbutterscotch.set("0")

def pudding():
    if (var35.get()==1):
        txtpudding.configure(state=NORMAL)
        varpudding.set("")
    elif (var35.get() == 0):
        txtpudding.configure(state=DISABLED)
        varpudding.set("0")

def tarts():
    if (var36.get()==1):
        txttarts.configure(state=NORMAL)
        vartarts.set("")
    elif (var36.get() == 0):
        txttarts.configure(state=DISABLED)
        vartarts.set("0")

def tiramisu():
    if (var37.get()==1):
        txttiramisu.configure(state=NORMAL)
        vartiramisu.set("")
    elif (var37.get() == 0):
        txttiramisu.configure(state=DISABLED)
        vartiramisu.set("0")

def cheesecakes():
    if (var38.get()==1):
        txtcheesecakes.configure(state=NORMAL)
        varcheesecakes.set("")
    elif (var38.get() == 0):
        txtcheesecakes.configure(state=DISABLED)
        varcheesecakes.set("0")

def mascarpone():
    if (var39.get()==1):
        txtmascarpone.configure(state=NORMAL)
        varmascarpone.set("")
    elif (var39.get() == 0):
        txtmascarpone.configure(state=DISABLED)
        varmascarpone.set("0")


####################################  CALCULATOR ####################


label11 = Label(winCalculator,
               width=300,
               height=20,
               bd=4,
               relief="raise")
label11.pack(side=TOP)

label12 = Label(winCalculator,
               width=300,
               height=20,
               bd=4,
               relief="sunken")
label12.pack(side=BOTTOM)

def button_click(numbers):
    global first_number
    first_number = first_number + str(numbers)
    text_Input.set(first_number)

def button_del():
    global first_number
    first_number = ""
    text_Input.set(first_number)

def button_result():
    global first_number
    result = str(eval(first_number))
    text_Input.set(result)
    first_number = ""

first_number = ""
text_Input = StringVar()

result = Entry(label11,
               font=("arial",18,"bold"),
               bg="gray",
               textvariable=text_Input,
               width=21,
               bd=10,
               justify="right").grid(row=0,column=0)

def button_design(text,but_click,row_input,column_input):
    Button(label12, padx=16, pady=1, bd=4, fg="black", font=("arial", 18, "bold"), width=4,
           height=2, bg="gray24", text=text , command=lambda: button_click(but_click)).grid(row=row_input, column=column_input)

button7 = button_design("7",7,0,1)
button8 = button_design("8",8,0,2)
button9 = button_design("9",9,0,3)
col = button_design("+","+",0,4)

button4 = button_design("4",4,1,1)
button5 = button_design("5",5,1,2)
button6 = button_design("6",6,1,3)
ext = button_design("-","-",1,4)


button1 = button_design("1",1,2,1)
button2 = button_design("2",2,2,2)
button3 = button_design("3",3,2,3)
impact = button_design("*","*",2,4)

button0 = button_design("0",0,3,1)
delete    = Button(label12,padx=16,pady=1,bd=4,fg="black",font=("arial",18,"bold"),width=4,
                 height=2,bg="gray24",text="C",command=button_del).grid(row=3,column=2)
result = Button(label12,padx=16,pady=1,bd=4,fg="black",font=("arial",18,"bold"),width=4,
                 height=2,bg="gray24",text="=",command=button_result).grid(row=3,column=3)
chamber = button_design("/","/",3,4)

####################################  BILL ##########################

def costofmeal():
    meal1 = float(vartomatoSoup.get())
    meal2 = float(varyogurtSoup.get())
    meal4 = float(varchickenSoup.get())
    meal5 = float(varturkeySoup.get())
    meal6 = float(varravioliSoup.get())
    meal7 = float(varpotatoSoup.get())
    meal8 = float(varlentilSoup.get())
    meal9 = float(varpastaSalad.get())
    meal10 = float(varRussianSalad.get())
    meal11 = float(varbroccoliSalad.get())
    meal12 = float(varshepherdSalad.get())
    meal13 = float(vararugulaSalad.get())
    meal14 = float(varAmericanSalad.get())
    meal15 = float(varcarrotSalad.get())
    meal16 = float(varburger.get())
    meal17 = float(vardabBurger.get())
    meal18 = float(varspecialBurger.get())
    meal19 = float(vartexasBurger.get())
    meal20 = float(varbigsBurger.get())
    meal21 = float(varempanadas.get())
    meal22 = float(varceviche.get())
    meal23 = float(vartaco.get())
    meal24 = float(vartostones.get())
    meal25 = float(varbuffalo.get())
    meal26 = float(varpabellon.get())
    meal27 = float(varlightCola.get())
    meal28 = float(varzeroCola.get())
    meal29 = float(varfanta.get())
    meal30 = float(varlemonade.get())
    meal31 = float(varbuttermilk.get())
    meal32 = float(varcola.get())
    meal33 = float(varorangeJuice.get())
    meal34 = float(varcake.get())
    meal35 = float(varbutterscotch.get())
    meal36 = float(varpudding.get())
    meal37 = float(vartarts.get())
    meal38 = float(vartiramisu.get())
    meal39 = float(varcheesecakes.get())
    meal40 = float(varmascarpone.get())


    iTotal1 = ((meal1*1.20)+(meal2*1.40)+(meal4*1.50))
    iTotal2 = ((meal5*1.60)+(meal6*1.65)+(meal7*1.70)+(meal8*1.75))
    iTotal3 = ((meal9*1.00)+(meal10*1.10)+(meal11*1.10)+(meal12*1.20)+(meal13*1.20))
    iTotal4 = ((meal16*4.00)+(meal17*5.00)+(meal14*1.20)+(meal15*1.00) )
    iTotal5 = ((meal18*7.00)+(meal19*9.00)+(meal20*10.00)+(meal21*5.00))
    iTotal6 = ((meal22 * 5.00) + (meal23 * 5.00) + (meal24 * 5.00) + (meal25 * 5.00))
    iTotal7 = ((meal26 * 5.00) + (meal27 * 1.00) + (meal28 * 1.00) + (meal29 * 1.00))
    iTotal8 = ((meal30 * 2.00) + (meal31 * 1.50) + (meal32 * 1.00) + (meal33 * 1.50))
    iTotal9 = ((meal34 * 2.50) + (meal35 * 2.50) + (meal36 * 3.50) + (meal37 * 3.00))
    iTotal10 = ((meal38 * 2.50) + (meal39 * 1.50) + (meal40 * 3.00))


    if (var40.get() == "Cash"):
        iChange = float(varPayment.get())
        iCost = (iTotal1 + iTotal2 + iTotal3+ iTotal4 + iTotal5+ iTotal6+ iTotal7+ iTotal8+ iTotal9+ iTotal10)
        iTax  = (iCost*3.4)/100
        iTaxq = "$",str("%.2f"%(iTax))
        varTax.set(iTaxq)

        iCostq = "$", str("%.2f"%(iCost))
        varSubTotal.set(iCostq)
        iTotalq = "$" , str("%.2f"%(iCost+iTax))
        varTotal.set(iTotalq)
        cChange = (iChange -(iCost+iTax))
        cChangeq = "$", str("%.2f"%(cChange))
        varChange.set(cChangeq)
    elif(var41.get())== "Master Card" or "Visa Card" or "Debit Card":
        varPayment.set("")
        iCost = (iTotal1 + iTotal2 + iTotal3+ iTotal4 + iTotal5+ iTotal6+ iTotal7+ iTotal8+ iTotal9+ iTotal10)
        iTax = (iCost * 3.4) / 100
        iTaxq = "$", str("%.2f" % (iTax))
        varTax.set(iTaxq)

        iCostq = "$", str("%.2f" % (iCost))
        varSubTotal.set(iCostq)
        iTotalq = "$", str("%.2f" % (iCost + iTax))
        varTotal.set(iTotalq)
        varChange.set("")








############# SOUP  ############
soupTitle = Label(winSoups,font=("Times New Roman",18,"bold"),
                  bg="black",
                  fg="white",
                  text="\tSOUPS \t\n",
                  justify=CENTER)
soupTitle.grid(row=0,column=0)

tomatoSoup = Checkbutton(winSoups,text="Tomato Soup\t1.20",
                    variable=var1,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=tomatoSoup).grid(row=1,column=0,sticky=W)
txttomatoSoup = Entry(winSoups,font=("arial",18,"bold"),
                 textvariable=vartomatoSoup,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txttomatoSoup.grid(row=1,column=1)

yogurtSoup = Checkbutton(winSoups,text="Yogurt Soup\t1.40",
                    variable=var2,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=yogurtSoup).grid(row=2,column=0,sticky=W)
txtyogurtSoup = Entry(winSoups,font=("arial",18,"bold"),
                 textvariable=varyogurtSoup,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtyogurtSoup.grid(row=2,column=1)

chickenSoup = Checkbutton(winSoups,text="Chicken Soup\t1.50",
                    variable=var3,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=chickenSoup).grid(row=3,column=0,sticky=W)
txtchickenSoup = Entry(winSoups,font=("arial",18,"bold"),
                 textvariable=varchickenSoup,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtchickenSoup.grid(row=3,column=1)

turkeySoup = Checkbutton(winSoups,text="Turkey Soup\t1.60",
                    variable=var4,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=turkeySoup).grid(row=4,column=0,sticky=W)
txtturkeySoup = Entry(winSoups,font=("arial",18,"bold"),
                 textvariable=varturkeySoup,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtturkeySoup.grid(row=4,column=1)

ravioliSoup = Checkbutton(winSoups,text="Ravioli Soup\t1.65",
                    variable=var5,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman",18, "bold"),
                    command=ravioliSoup).grid(row=5,column=0,sticky=W)
txtravioliSoup = Entry(winSoups,font=("arial",18,"bold"),
                 textvariable=varravioliSoup,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtravioliSoup.grid(row=5,column=1)

potatoSoup = Checkbutton(winSoups,text="Potato Soup\t1.70",
                    variable=var6,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=potatoSoup).grid(row=6,column=0,sticky=W)
txtpotatoSoup = Entry(winSoups,font=("arial",18,"bold"),
                 textvariable=varpotatoSoup,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtpotatoSoup.grid(row=6,column=1)

lentilSoup = Checkbutton(winSoups,text="Lentil Soup\t1.75",
                    variable=var7,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=lentilSoup).grid(row=7,column=0,sticky=W)
txtlentilSoup = Entry(winSoups,font=("arial",18,"bold"),
                 textvariable=varlentilSoup,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtlentilSoup.grid(row=7,column=1)
space = Label(winSoups,text="\n",bg="black")
space.grid(row=8,column=1)


################### SALAD ##############

saladTitle = Label(winSalad,font=("Times New Roman",18,"bold"),
                  bg="black",
                  fg="white",
                  text="\tSALAD \t\n",
                  justify=CENTER)
saladTitle.grid(row=0,column=0)

pastaSalad = Checkbutton(winSalad,text="Pasta Salad\t1.00",
                    variable=var8,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=pastaSalad).grid(row=1,column=0,sticky=W)
txtpastaSalad = Entry(winSalad,font=("arial",18,"bold"),
                 textvariable=varpastaSalad,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtpastaSalad.grid(row=1,column=1)

RussianSalad = Checkbutton(winSalad,text="Russian Salad\t1.10",
                    variable=var9,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=RussianSalad).grid(row=2,column=0,sticky=W)
txtRussianSalad = Entry(winSalad,font=("arial",18,"bold"),
                 textvariable=varRussianSalad,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtRussianSalad.grid(row=2,column=1)

broccoliSalad = Checkbutton(winSalad,text="Broccoli Salad\t1.10",
                    variable=var10,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=broccoliSalad).grid(row=3,column=0,sticky=W)
txtbroccoliSalad = Entry(winSalad,font=("arial",18,"bold"),
                 textvariable=varbroccoliSalad,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtbroccoliSalad.grid(row=3,column=1)

shepherdSalad = Checkbutton(winSalad,text="Shepherd Salad\t1.20",
                    variable=var11,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=shepherdSalad).grid(row=4,column=0,sticky=W)
txtshepherdSalad = Entry(winSalad,font=("arial",18,"bold"),
                 textvariable=varshepherdSalad,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtshepherdSalad.grid(row=4,column=1)

arugulaSalad = Checkbutton(winSalad,text="Arugula Salad\t1.20",
                    variable=var12,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=arugulaSalad).grid(row=5,column=0,sticky=W)
txtarugulaSalad = Entry(winSalad,font=("arial",18,"bold"),
                 textvariable=vararugulaSalad,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtarugulaSalad.grid(row=5,column=1)

AmericanSalad = Checkbutton(winSalad,text="American Salad\t1.20",
                    variable=var13,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=AmericanSalad).grid(row=6,column=0,sticky=W)
txtAmericanSalad = Entry(winSalad,font=("arial",18,"bold"),
                 textvariable=varAmericanSalad,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtAmericanSalad.grid(row=6,column=1)

carrotSalad = Checkbutton(winSalad,text="Carrot Salad\t1.00",
                    variable=var14,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=carrotSalad).grid(row=7,column=0,sticky=W)
txtcarrotSalad = Entry(winSalad,font=("arial",18,"bold"),
                 textvariable=varcarrotSalad,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtcarrotSalad.grid(row=7,column=1)

##############  MAIN COURSE ###############

mainTitle = Label(winMainCourse,font=("Times New Roman",18,"bold"),
                  bg="black",
                  fg="white",
                  text="MAIN COURSE\n",
                  justify=CENTER)
mainTitle.grid(row=0,column=0)

burger = Checkbutton(winMainCourse,text="Burger\t\t4.00",
                    variable=var15,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=burger).grid(row=1,column=0,sticky=W)
txtburger = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=varburger,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtburger.grid(row=1,column=1)

dabBurger = Checkbutton(winMainCourse,text="Dab Burger\t5.00",
                    variable=var16,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=dabBurger).grid(row=2,column=0,sticky=W)
txtdabBurger = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=vardabBurger,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtdabBurger.grid(row=2,column=1)

specialBurger = Checkbutton(winMainCourse,text="Spe. Burger\t7.00",
                    variable=var17,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=specialBurger).grid(row=3,column=0,sticky=W)
txtspecialBurger = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=varspecialBurger,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtspecialBurger.grid(row=3,column=1)

texasBurger = Checkbutton(winMainCourse,text="Texas Burger\t9.00",
                    variable=var18,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=texasBurger).grid(row=4,column=0,sticky=W)
txttexasBurger = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=vartexasBurger,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txttexasBurger.grid(row=4,column=1)

bigsBurger = Checkbutton(winMainCourse,text="Big Burger\t10.0",
                    variable=var19,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=bigsBurger).grid(row=5,column=0,sticky=W)
txtbigsBurger = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=varbigsBurger,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtbigsBurger.grid(row=5,column=1)

empanadas = Checkbutton(winMainCourse,text="Empanadas\t5.00",
                    variable=var20,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=empanadas).grid(row=6,column=0,sticky=W)
txtempanadas = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=varempanadas,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtempanadas.grid(row=6,column=1)

ceviche = Checkbutton(winMainCourse,text="Ceviche\t\t5.00",
                    variable=var21,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=ceviche).grid(row=7,column=0,sticky=W)
txtceviche = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=varceviche,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtceviche.grid(row=7,column=1)

taco = Checkbutton(winMainCourse,text="Taco\t\t5.00",
                    variable=var22,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=taco).grid(row=8,column=0,sticky=W)
txttaco = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=vartaco,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txttaco.grid(row=8,column=1)

tostones = Checkbutton(winMainCourse,text="Tostones\t\t5.00",
                    variable=var23,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=tostones).grid(row=9,column=0,sticky=W)
txttostones = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=vartostones,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txttostones.grid(row=9,column=1)

pabellon = Checkbutton(winMainCourse,text="Pabellon\t\t5.00",
                    variable=var24,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=pabellon).grid(row=10,column=0,sticky=W)
txtpabellon = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=varpabellon,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtpabellon.grid(row=10,column=1)

buffalo = Checkbutton(winMainCourse,text="Buffalo\t\t5.00",
                    variable=var25,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=buffalo).grid(row=11,column=0,sticky=W)
txtbuffalo = Entry(winMainCourse,font=("arial",18,"bold"),
                 textvariable=varbuffalo,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtbuffalo.grid(row=11,column=1)


figure = Label(winMainCourse,font=("Times New Roman", 14, "bold"),
               bg="black",fg="red",text="""

(¯`*·.¸,¤°´'`°¤,¸.·*´¯) 
¸,¤°´'`°·.¸O¸.·°´'`°¤,¸
|¯¯¯¯¯¯¯¯¯¯¯·.·¯¯¯¯¯¯¯¯¯¯¯|
-->* FAST FOOD *-- 
|___________.·.___________|
*´'`°¤¸¸.·'´O`'·.¸¸¤°´'`*
(_¸.·*´'`°¤¸'¸¤°´'`*·.¸_)


""")
figure.grid(row=12,column=0)


################## THE DRINK ################

drinkTitle = Label(winTheDrink,font=("Times New Roman",18,"bold"),
                  bg="black",
                  fg="white",
                  text="THE DRINK\n",
                  justify=CENTER)
drinkTitle.grid(row=0,column=0)

cola  = Checkbutton(winTheDrink,text="Cola\t\t1.00",
                    variable=var26,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=cola).grid(row=1,column=0,sticky=W)
txtcola = Entry(winTheDrink,font=("arial",18,"bold"),
                 textvariable=varcola,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtcola.grid(row=1,column=1)

lightCola  = Checkbutton(winTheDrink,text="Light Cola\t1.00",
                    variable=var27,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=lightCola).grid(row=2,column=0,sticky=W)
txtlightCola = Entry(winTheDrink,font=("arial",18,"bold"),
                 textvariable=varlightCola,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtlightCola.grid(row=2,column=1)


zeroCola  = Checkbutton(winTheDrink,text="Zero Cola\t1.00",
                    variable=var28,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=zeroCola).grid(row=3,column=0,sticky=W)
txtzeroCola = Entry(winTheDrink,font=("arial",18,"bold"),
                 textvariable=varzeroCola,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtzeroCola.grid(row=3,column=1)

fanta  = Checkbutton(winTheDrink,text="Fanta\t\t1.00",
                    variable=var29,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=fanta).grid(row=4,column=0,sticky=W)
txtfanta = Entry(winTheDrink,font=("arial",18,"bold"),
                 textvariable=varfanta,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtfanta.grid(row=4,column=1)

lemonade  = Checkbutton(winTheDrink,text="Lemonade\t2.00",
                    variable=var30,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=lemonade).grid(row=5,column=0,sticky=W)
txtlemonade = Entry(winTheDrink,font=("arial",18,"bold"),
                 textvariable=varlemonade,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtlemonade.grid(row=5,column=1)

buttermilk  = Checkbutton(winTheDrink,text="Butter Milk\t1.50",
                    variable=var31,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=buttermilk).grid(row=6,column=0,sticky=W)
txtbuttermilk = Entry(winTheDrink,font=("arial",18,"bold"),
                 textvariable=varbuttermilk,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtbuttermilk.grid(row=6,column=1)

orangeJuice  = Checkbutton(winTheDrink,text="Orange Juice\t1.50",
                    variable=var32,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=orangeJuice).grid(row=7,column=0,sticky=W)
txtorangeJuice = Entry(winTheDrink,font=("arial",18,"bold"),
                 textvariable=varorangeJuice,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtorangeJuice.grid(row=7,column=1)
space = Label(winTheDrink,text="\n",bg="black")
space.grid(row=8,column=1)

################## THE DRINK ################


dessertTitle = Label(winDessert,font=("Times New Roman",18,"bold"),
                  bg="black",
                  fg="white",
                  text="DESSERT\n",
                  justify=CENTER)
dessertTitle.grid(row=0,column=0)

cake  = Checkbutton(winDessert,text="Cake\t\t2.50",
                    variable=var33,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=cake).grid(row=1,column=0,sticky=W)
txtcake = Entry(winDessert,font=("arial",18,"bold"),
                 textvariable=varcake,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtcake.grid(row=1,column=1)

butterscotch  = Checkbutton(winDessert,text="Butterscotch\t2.50",
                    variable=var34,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=butterscotch).grid(row=2,column=0,sticky=W)
txtbutterscotch = Entry(winDessert,font=("arial",18,"bold"),
                 textvariable=varbutterscotch,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtbutterscotch.grid(row=2,column=1)

pudding  = Checkbutton(winDessert,text="Pudding\t\t3.50",
                    variable=var35,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=pudding).grid(row=3,column=0,sticky=W)
txtpudding = Entry(winDessert,font=("arial",18,"bold"),
                 textvariable=varpudding,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtpudding.grid(row=3,column=1)

tarts  = Checkbutton(winDessert,text="Tarts\t\t3.00",
                    variable=var36,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=tarts).grid(row=4,column=0,sticky=W)
txttarts = Entry(winDessert,font=("arial",18,"bold"),
                 textvariable=vartarts,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txttarts.grid(row=4,column=1)


tiramisu  = Checkbutton(winDessert,text="Tiramisu\t\t2.50",
                    variable=var37,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=tiramisu).grid(row=5,column=0,sticky=W)
txttiramisu  = Entry(winDessert,font=("arial",18,"bold"),
                 textvariable=vartiramisu,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txttiramisu.grid(row=5,column=1)

cheesecakes  = Checkbutton(winDessert,text="Cheesecakes\t1.50",
                    variable=var38,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=cheesecakes).grid(row=6,column=0,sticky=W)
txtcheesecakes  = Entry(winDessert,font=("arial",18,"bold"),
                 textvariable=varcheesecakes,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtcheesecakes.grid(row=6,column=1)

mascarpone  = Checkbutton(winDessert,text="Mascarpone\t3.00",
                    variable=var39,onvalue=1,offvalue=0,bg="black",fg="white",
                    font=("Times New Roman", 18, "bold"),
                    command=mascarpone).grid(row=7,column=0,sticky=W)
txtmascarpone  = Entry(winDessert,font=("arial",18,"bold"),
                 textvariable=varmascarpone,
                 width=6,justify="right",bg="black",fg="white",
                 state=DISABLED)
txtmascarpone.grid(row=7,column=1)

# THT BILL



#=============================================================================================

varname = StringVar()

def loginsystem():
    namelabel.destroy()
    entryname.destroy()
    butonLogin.destroy()
    lblPaymentMethod = Label(winTheBill, bg="black", fg="white", font=("arial", 14, "bold"), text="Payment Method",
                             bd=10, width=16, anchor="w")
    lblPaymentMethod.grid(row=0, column=0)

    lblChange = Label(winTheBill, bg="black", fg="white", font=("arial", 14, "bold"), text="Change", bd=10, anchor="w")
    lblChange.grid(row=5, column=0)
    txtChange = Entry(winTheBill, bg="black", fg="white", font=("arial", 18, "bold"), textvariable=varChange, width=6,
                      state=DISABLED)
    txtChange.grid(row=5, column=1)

    cmbPaymentMethod = ttk.Combobox(winTheBill, textvariable=var41, state="readonly", font=("arial", 10, "bold"),
                                    width=20)
    cmbPaymentMethod["value"] = ("Cash", "Master Card", "Debit Card")
    cmbPaymentMethod.current(0)
    cmbPaymentMethod.grid(row=1, column=0)

    lblTax = Label(winTheBill, bg="black", fg="white", font=("arial", 14, "bold"), text="Tax", bd=10, anchor="w")
    lblTax.grid(row=8, column=0)
    txtTax = Entry(winTheBill, bg="black", fg="white", font=("arial", 18, "bold"), textvariable=varTax, justify="left",
                   width=6, state=DISABLED)
    txtTax.grid(row=8, column=1)

    txtPayment = Entry(winTheBill, bg="black", fg="white", font=("arial", 18, "bold"), textvariable=varPayment, width=6,
                       justify="left")
    txtPayment.grid(row=1, column=3)
    lblSubTotal = Label(winTheBill, bg="black", fg="white", font=("arial", 14, "bold"), text="Sub Total", bd=10,
                        width=8, anchor="w")
    lblSubTotal.grid(row=9, column=0)
    txtSubTotal = Entry(winTheBill, bg="black", fg="white", font=("arial", 18, "bold"), textvariable=varSubTotal,
                        width=6, justify="left", state=DISABLED)
    txtSubTotal.grid(row=9, column=1)

    lblTotal = Label(winTheBill, bg="black", fg="white", font=("arial", 14, "bold"), text="Total", bd=10, width=6,
                     anchor="w")
    lblTotal.grid(row=10, column=0)
    txtTotal = Entry(winTheBill, bg="black", fg="white", font=("arial", 18, "bold"), textvariable=varTotal, width=6,
                     justify="left", state=DISABLED)
    txtTotal.grid(row=10, column=1)

    space = Label(winTheBill, text="\n\n\n", bg="black")
    space.grid()

    btnTotal = Button(winTheBill, padx=16, pady=1, bd=4, font=("arial", 16, "bold"), width=5,
                      text="Total   ", command=costofmeal).grid(row=11, column=0)

    btnReset = Button(winTheBill, padx=16, pady=1, bd=4, font=("arial", 16, "bold"), width=5,
                      text="reset", command=Reset).place(relx=0.435, rely=0.82)

    btnExit = Button(winTheBill, padx=16, pady=1, bd=4, font=("arial", 16, "bold"), width=5,
                     text="exit", command=lambda: iexit()).grid(row=11, column=3)



namelabel = Label(winTheBill,text="  LOGİN THE SYSTEM",fg="white",bg="black",font=("Times New Roman",20, "bold"))
namelabel.place(relx=0.10,rely=0.20)
entryname = Entry(winTheBill,font=("Times New Roman", 18, "bold"),bg="black",fg="white",textvariable=varname)
entryname.place(relx=0.21,rely=0.35)
butonLogin = Button(winTheBill,font=("Times New Roman", 16, "bold"), text="LOGİN", bg="black", fg="white", command=loginsystem)
butonLogin.place(relx=0.4,rely=0.5)



window.mainloop()
Advertisements

1 Comment »

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: