Commit Diff


commit - b9c4accfad2538881df08d7e87dfe67b17c14d4f
commit + 4e6ae475049343b52957a55a724693bf2ebfa89b
blob - 085cb985fb3888d83d672aa434963378a68d0909
blob + 831c40eb8b7058b768f3ce79a0e5710960eed8bf
--- passgen.py
+++ passgen.py
@@ -126,10 +126,9 @@ class MainApp:
 
         self.output_pass()
 
-    def change_password_length(self):
+    def change_password_length(self, newval):
         """Displays the new len of the passwords and then outputs it"""
-        password_length_text = "Password length: {self.pass_length.get()}"
-        self.label_length.config(text=password_length_text)
+        self.label_length.config(text=f"Password length: {newval}")
         self.output_pass()
 
     def copy_password(self):