Update v1.12.py

This commit is contained in:
Evan Su 2021-04-04 17:55:21 -04:00 committed by GitHub
parent 1175c5060a
commit fc84fa2b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 9 deletions

View File

@ -39,7 +39,6 @@ import tkinter.ttk
import tkinter.scrolledtext
import webbrowser
import platform
import passwordmeter
# Global variables
rootDir = dirname(realpath(__file__))
@ -315,13 +314,7 @@ def showStrength():
if mode=="decrypt":
return
password = passwordInput.get()
if password:
strength,_ = passwordmeter.test(password)
passwordStrength.config(width=round(210*strength))
else:
passwordStrength.config(width=210)
passwordStrength.config(bg="#e5eaf0")
"""containsLetters = any(i.isalpha() for i in password)
containsLetters = any(i.isalpha() for i in password)
containsNumbers = any(i.isdigit() for i in password)
containsSymbols = any(not i.isalnum() for i in password)
longEnough = len(password)>8
@ -341,7 +334,7 @@ def showStrength():
passwordStrength.config(bg="#e5eaf0")
else:
passwordStrength.config(width=20)
passwordStrength.config(bg="#e3242b")"""
passwordStrength.config(bg="#e3242b")
# Check if passwords match
def doPasswordsMatch():