|
|
|
@ -1,48 +1,29 @@ |
|
|
|
import tkinter as tk |
|
|
|
|
|
|
|
# def entrer(): |
|
|
|
# mdp=entree.get() |
|
|
|
# if mdp == ''and''and'': |
|
|
|
# value.set('il est accepter votre mots de passe est',mdp) |
|
|
|
# else : |
|
|
|
# value.set('incorect') |
|
|
|
# |
|
|
|
# def suprimer() |
|
|
|
|
|
|
|
|
|
|
|
fenetre = tk.Tk() |
|
|
|
fenetre.title("mots de passe") |
|
|
|
canva=tk.Canvas(fenetre, width=500, height=500, bg='black') |
|
|
|
tk.Label(text = "createur de mots de passe").grid(column=1, |
|
|
|
columnspan=3) |
|
|
|
|
|
|
|
value = tk.DoubleVar() |
|
|
|
value.set("entrez un mots de passe qui contient au moins une majuscule,un caractère spécial et un tiret") |
|
|
|
entree = tk.Entry(fenetre,textvariable = value ,width=100) |
|
|
|
entree = tk.Entry(fenetre,width=30) |
|
|
|
entree.grid(column=1, columnspan=3) |
|
|
|
|
|
|
|
|
|
|
|
tk.Button(text ='entrer',).grid(column=1, |
|
|
|
row=3, |
|
|
|
padx=5, |
|
|
|
pady=5) |
|
|
|
tk.Button(text ='suprimer',).grid(column=2, |
|
|
|
row=3, |
|
|
|
padx=5, |
|
|
|
pady=5) |
|
|
|
|
|
|
|
tk.Checkbutton(text='majuscule').grid(column=3, |
|
|
|
tk.Checkbutton(text='majuscule').grid(column=2, |
|
|
|
row=3, |
|
|
|
padx=5, |
|
|
|
pady=5,) |
|
|
|
tk.Checkbutton(text='caractère spécial').grid(column=3, |
|
|
|
tk.Checkbutton(text='caractère spécial').grid(column=2, |
|
|
|
row=4, |
|
|
|
padx=5, |
|
|
|
pady=5,) |
|
|
|
tk.Checkbutton(text='tiret').grid(column=3, |
|
|
|
tk.Checkbutton(text='tiret').grid(column=2, |
|
|
|
row=5, |
|
|
|
padx=5, |
|
|
|
pady=5,) |
|
|
|
tk.Checkbutton(text='minuscule').grid(column=2, |
|
|
|
row=6, |
|
|
|
padx=5, |
|
|
|
pady=5,) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|