This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def auten(): | |
intentos = 2 | |
while intentos > 0: | |
usuario = input("Usuario: ") | |
contrasena = input("Contraseña: ") | |
if usuario == "ken" and contrasena == "1111": | |
print("¡Autenticación exitosa!") | |
return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
from tkinter import ttk | |
from tkinter import messagebox | |
class Interfaz: | |
def __init__(self, ventana): | |
self.ventana = ventana | |
self.productos = ("Galletas-$10", "Jugo-$8", "Gomitas-$9", "Agua-$7", "Chocolate-$5", "Donas-$11", "Fresco-$8") | |
self.cantidad = IntVar() | |
self.total = StringVar() |