Giới thiệu sản phẩm
Session 36 - Học phần 3
Bài học : Buổi 6 - FORM ĐĂNG NHẬP (TIẾP)
Tìm hiểu chủ đề: Quảng cáo trên nền tảng số
Kiến thức, khái niệm: Tìm hiểu về Radiobuttons, Checkboxes, MessageBox
Dự án Form đăng nhập 2: Bổ sung các tính năng như: giới tính; sở thích; học vấn;...
Visual Studio Code
import tkinter as tk
Kiến thức, khái niệm: Tìm hiểu về Radiobuttons, Checkboxes, MessageBox
Dự án Form đăng nhập 2: Bổ sung các tính năng như: giới tính; sở thích; học vấn;...
Visual Studio Code
import tkinter as tk
from tkinter import *
from tkinter import messagebox, ttk
root=tk.Tk()
root.minsize(400,500)
root.maxsize(800,1000)
root.config(background='white')
root.title('microsoft office reward bing copilot mike rowsoft tech nicisse')
ps2var=tk.StringVar()
us2var=tk.StringVar()
def btnclick():
if (us2var.get() == "DLMleminh" and ps2var.get() == "12345678"):
messagebox.showinfo('login','haha you ben trick i take your acc')
return
messagebox.showerror('login','incorec pasassword or username, try AGAIN')
login_f = Frame(root)
login_f.config(bg='white')
warn1 = messagebox.showwarning('microsoft acc','warning! you got virus VIRUSDEATH.exe')
login = Label(login_f,text='your macrosofe acc has been hack ⚠︎⚠︎⚠︎',background='red',font=('Impact', 28)).pack()
ues = Label(login_f,text='fill out this frowm, we HELP',background='#a8e0d6',font=('Calibri', 14)).pack()
us = Label(login_f,text='gmail',background='white',font=('Calibri', 14)).pack()
us2 = Entry(login_f,background='white',font=('Banschrift', 14), textvariable=us2var).pack()
ps = Label(login_f,text='Password',background='white',font=('Calibri', 14)).pack()
ps2 = Entry(login_f,background='white',font=('Bahnschrift', 14),show='*', textvariable=ps2var).pack()
def btnclick2():
register_frame = Frame(root)
register_label = Label(register_frame,text="sign min", font=("Times New Roman", 20),bg='white')
register_user = Label(register_frame,text="username")
register_label.pack(pady=10)
login_f.pack_forget()
register_frame.pack()
ttk.Label(login_f, text='rate us suvic from 1 to five').pack(padx=100)
role_combobox = ttk.Combobox(login_f, values=['one','tree','for',"fiv",'oops wrong gamrerrr','V'], state="readonly")
role_combobox.pack(padx=100)
role_combobox.current(0)
btn = Button(login_f, text='login', command=btnclick).pack()
btn2 = Button(login_f, text="don't have acc? sign in her",bd=0,background='white', command=btnclick2).pack()
login_f.pack()
root.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