Skip to content

Instantly share code, notes, and snippets.

View Kendal-ovi's full-sized avatar
🎯
Enfoque

Kendal Oviedo Araya Kendal-ovi

🎯
Enfoque
  • Costa Rica
  • 07:43 (UTC -12:00)
View GitHub Profile
@Kendal-ovi
Kendal-ovi / Creador de usuario y contraseña py
Created July 30, 2024 02:43
Solo ay que cambiar el usuario y la contraseña
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
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()