Giới thiệu sản phẩm
import tkinter as tk
from tkinter import *
from tkinter import messagebox
sec = tk.Tk()
sec.geometry("400x500")
sec.title("login")
stick = BooleanVar()
stick.set(False)
stick1 = BooleanVar()
stick1.set(True)
labsaid = Label(sec,text="Login",font=("Times New Roman",25))
labsaid.place(x=155,y=40)
labaccc = Label(sec,text="Account",font=("Times New Roman",14))
labaccc.place(x=110,y=200)
labacca = Entry(sec,font=("Arial",14))
labacca.place(x=180,y=200)
labpass = Label(sec,text="Password",font=("Times New Roman",14))
labpass.place(x=110,y=360)
labpasa = Entry(sec,font=("Arial",14),show = "⅜")
labpasa.place(x=185,y=360)
def xac():
winc=tk.Tk()
winc.geometry("1000x1000")
winc.title("CAP CHA")
labelcap=Label(winc,text="Answer",font=('uriel',15))
labelcap.place(x=0,y=0)
q=Label(winc,text="What is the code")
q.place(x=10,y=100)
text=Entry(winc,width=30,font=("uriel",10))
text.place(x=170,y=100)
def nhan():
if text.get()=="1111":
messagebox.showinfo("congrats","yougood")
winc.destroy()
else:
messagebox.showerror("GETOUT","uuuuiaaa")
winc.destroy()
sec.destroy()
btnc=Button(winc,text="Next",bg="lightblue",fg="red",command=nhan)
btnc.place(x=190,y=190)
def cooked():
if labacca.get()=="user_adm" and labpasa.get()=="Martinez" and stick.get()== True:
messagebox.showinfo("","ok")
sec.destroy()
Yourshopa = tk.Tk()
Yourshopa.geometry("400x500")
Yourshopa.title("Manage your shop!!")
labsaid = Label(Yourshopa,text="Manage your shop!",font=("Times New Roman",25))
labsaid.place(x=90,y=40)
def credit():
Cre = tk.Tk()
Cre.geometry("500x500")
labcre = Label(Cre,text="Main:Tran Trung Nghia Help Teacher Ha(code). Mom and dad:Teach how a shop work. Thank all of you very much!",font=("Arial",20))
labcre.place(x=20,y=40)
btncheck=Button(Yourshopa,text="Check your things",bg="Green",fg="black")
btncheck.place(x=110,y=120)
btncheck=Button(Yourshopa,text="Credit",bg="Yellow",fg="black",command=credit)
btncheck.place(x=250,y=120)
else:
messagebox.showerror("error","Check capcha or you may press wrong the password")
sec.destroy()
capcha=Checkbutton(sec,text="Verify",variable=stick,font=("Arial",10,"bold"),command=xac)
capcha.place(x=170,y=390)
btncheck=Button(sec,text="Confirm",bg="red",fg="black",command=cooked)
btncheck.place(x=175,y=450)
sec.mainloop()
from tkinter import *
from tkinter import messagebox
sec = tk.Tk()
sec.geometry("400x500")
sec.title("login")
stick = BooleanVar()
stick.set(False)
stick1 = BooleanVar()
stick1.set(True)
labsaid = Label(sec,text="Login",font=("Times New Roman",25))
labsaid.place(x=155,y=40)
labaccc = Label(sec,text="Account",font=("Times New Roman",14))
labaccc.place(x=110,y=200)
labacca = Entry(sec,font=("Arial",14))
labacca.place(x=180,y=200)
labpass = Label(sec,text="Password",font=("Times New Roman",14))
labpass.place(x=110,y=360)
labpasa = Entry(sec,font=("Arial",14),show = "⅜")
labpasa.place(x=185,y=360)
def xac():
winc=tk.Tk()
winc.geometry("1000x1000")
winc.title("CAP CHA")
labelcap=Label(winc,text="Answer",font=('uriel',15))
labelcap.place(x=0,y=0)
q=Label(winc,text="What is the code")
q.place(x=10,y=100)
text=Entry(winc,width=30,font=("uriel",10))
text.place(x=170,y=100)
def nhan():
if text.get()=="1111":
messagebox.showinfo("congrats","yougood")
winc.destroy()
else:
messagebox.showerror("GETOUT","uuuuiaaa")
winc.destroy()
sec.destroy()
btnc=Button(winc,text="Next",bg="lightblue",fg="red",command=nhan)
btnc.place(x=190,y=190)
def cooked():
if labacca.get()=="user_adm" and labpasa.get()=="Martinez" and stick.get()== True:
messagebox.showinfo("","ok")
sec.destroy()
Yourshopa = tk.Tk()
Yourshopa.geometry("400x500")
Yourshopa.title("Manage your shop!!")
labsaid = Label(Yourshopa,text="Manage your shop!",font=("Times New Roman",25))
labsaid.place(x=90,y=40)
def credit():
Cre = tk.Tk()
Cre.geometry("500x500")
labcre = Label(Cre,text="Main:Tran Trung Nghia Help Teacher Ha(code). Mom and dad:Teach how a shop work. Thank all of you very much!",font=("Arial",20))
labcre.place(x=20,y=40)
btncheck=Button(Yourshopa,text="Check your things",bg="Green",fg="black")
btncheck.place(x=110,y=120)
btncheck=Button(Yourshopa,text="Credit",bg="Yellow",fg="black",command=credit)
btncheck.place(x=250,y=120)
else:
messagebox.showerror("error","Check capcha or you may press wrong the password")
sec.destroy()
capcha=Checkbutton(sec,text="Verify",variable=stick,font=("Arial",10,"bold"),command=xac)
capcha.place(x=170,y=390)
btncheck=Button(sec,text="Confirm",bg="red",fg="black",command=cooked)
btncheck.place(x=175,y=450)
sec.mainloop()
Hình ảnh sản phẩm
Sản phẩm cùng tác giả
Sản phẩm liên quan
Không có sản phẩm nào
Đăng nhập để tham gia bình luận