# -*- coding: utf-8 -*-from Tkinter import * import Tkinter as tk import tkMessageBox global cad def thamb(): hamb = var1.get() cantidad = cant.get() costohamb = 0 if hamb == "Hamburguesa sencilla": costohamb = 15 elif hamb == "Hamburguesa Doble": costohamb = 25 elif hamb == "Hamburguesa triple": costohamb = 35 costo = cantidad * costohamb return costo def comp(): costocomp = 0 cantidadR = cant1.get() cantidadP = cant2.get() cantidadB = cant3.get() refresco = CheckVar1.get() papas = CheckVar2.get() burrito = CheckVar3.get() if refresco == 1: costocomp = costocomp + (15 * cantidadR) if papas == 1: costocomp = costocomp + (20 * cantidadP) if burrito == 1: costocomp = costocomp + (18 * cantidadB) return costocomp def impuesto(): iva = (0.15 * (thamb() + comp())) return iva def limpiarcajas(): cuadrohamb.delete(0, 'end