Giới thiệu sản phẩm
#giao dien cua so dang nhap tkinter
from tkinter import *
from tkinter import messagebox
def thong_bao():
messagebox.showinfo("Accept.",".... .- ...- . / .- / -. .. -.-. . / -.. .- -.-- ---... -.--.-")
cua_so = Tk()
cua_so.title("Login or love logan")
cua_so.geometry("300x300+100+200")
entry_text = StringVar()
#tao chu dang nhap
text = Label(cua_so,text="Login or bien thanh J97")
text.pack()
#tao nhap thong tin
text_box = Entry(cua_so, bd=2,
textvariable=entry_text)
entry_text.set("Username")#dat ten tieu de truong
text_box.pack()
#tao truong password
text_box = Entry(cua_so, bd=2,show="*")
text_box.pack()
#tao nutb am dang nahp
btn = Button(cua_so,text="Login",
font=("Arial",14,"bold"),
width=14,height=1,fg="black",
bg="Orange", command = thong_bao)
btn.pack()
#fg=mau chu bg=phong
cua_so.mainloop()
from tkinter import *
from tkinter import messagebox
def thong_bao():
messagebox.showinfo("Accept.",".... .- ...- . / .- / -. .. -.-. . / -.. .- -.-- ---... -.--.-")
cua_so = Tk()
cua_so.title("Login or love logan")
cua_so.geometry("300x300+100+200")
entry_text = StringVar()
#tao chu dang nhap
text = Label(cua_so,text="Login or bien thanh J97")
text.pack()
#tao nhap thong tin
text_box = Entry(cua_so, bd=2,
textvariable=entry_text)
entry_text.set("Username")#dat ten tieu de truong
text_box.pack()
#tao truong password
text_box = Entry(cua_so, bd=2,show="*")
text_box.pack()
#tao nutb am dang nahp
btn = Button(cua_so,text="Login",
font=("Arial",14,"bold"),
width=14,height=1,fg="black",
bg="Orange", command = thong_bao)
btn.pack()
#fg=mau chu bg=phong
cua_so.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