@@ -27,7 +27,6 @@ class PasswordGenerationFrame(customtkinter.CTkFrame):
2727 (length and character sets),
2828 and serves as a hub for all other password generation functions.
2929 """
30-
3130 def __init__ (self , master : customtkinter .CTkFrame , ** kwargs ) -> None :
3231 super ().__init__ (master , ** kwargs )
3332 self .gui_font_name = 'Roboto'
@@ -69,6 +68,10 @@ def clear_text_label(textbox: customtkinter.CTkTextbox) -> None:
6968 ----------
7069 textbox: customtkinter.CTkTextbox
7170 The text label to be cleared.
71+
72+ Returns
73+ -------
74+ None
7275 """
7376 textbox .configure (state = 'normal' )
7477 textbox .delete ('1.0' , 'end' )
@@ -86,6 +89,10 @@ def show_password(indicator: int, btn: customtkinter.CTkButton) -> None:
8689 The number of the button that was clicked.
8790 btn: customtkinter.CTkButton
8891 The button that was clicked.
92+
93+ Returns
94+ -------
95+ None
8996 """
9097 # https://stackoverflow.com/questions/68327/change-command-method-for-tkinter-button-in-python
9198 btn .configure (text = 'HIDE' , command = lambda : hide_password (indicator , btn ))
@@ -116,6 +123,10 @@ def hide_password(indicator: int, btn: customtkinter.CTkButton) -> None:
116123 The number of the button that was clicked.
117124 btn: CTKButton
118125 The button that was clicked.
126+
127+ Returns
128+ -------
129+ None
119130 """
120131 btn .configure (text = 'SHOW' , command = lambda : show_password (indicator , btn ))
121132
@@ -141,6 +152,10 @@ def run_function_based_on_slider_value(value: float) -> None:
141152 ----------
142153 value: float
143154 The slider's value
155+
156+ Returns
157+ -------
158+ None
144159 """
145160 if value == 0 :
146161 hide_all_passwords ()
@@ -153,6 +168,10 @@ def show_all_passwords() -> None:
153168 this function goes through each password_label,
154169 inserts the specific password inside of it through the show_text function,
155170 and changes the button into a hide all button.
171+
172+ Returns
173+ -------
174+ None
156175 """
157176 for indicator , btn in enumerate (self .show_hide_buttons ):
158177 show_password (indicator , btn )
@@ -162,6 +181,10 @@ def hide_all_passwords() -> None:
162181 Called when the user clicks the 'hide all' button,
163182 this function goes through each password_label,
164183 and clears it.
184+
185+ Returns
186+ -------
187+ None
165188 """
166189 for indicator , btn in enumerate (self .show_hide_buttons ):
167190 hide_password (indicator , btn )
@@ -369,6 +392,10 @@ def show_copy_menu(event: tkinter.Event) -> None:
369392 ----------
370393 event: tkinter.Event
371394 Gets the coordinates of the mouse cursor when the user releases a mouse button on a password_label.
395+
396+ Returns
397+ -------
398+ None
372399 """
373400 # https://stackoverflow.com/questions/69425865/tkinter-event-x-y-mouse-position-wrong-value-only-when-mouse-movement-up
374401 self .copy_menu .tk_popup (event .x_root , event .y_root - 30 ) # https://youtu.be/Z4zePg2M5H8
@@ -399,6 +426,10 @@ def create_password_labels(event) -> None:
399426 ----------
400427 event: tk.Event
401428 Necessary for running the function when the user presses the RETURN key.
429+
430+ Returns
431+ -------
432+ None
402433 """
403434 message = logic .determine_error (
404435 logic .validate_character_sets (self .lowercase_letters_var , self .uppercase_letters_var ,
@@ -503,6 +534,10 @@ def show_text(textbox: customtkinter.CTkTextbox, message: str) -> None:
503534 or the first password label if an error is generated.
504535 message: str
505536 Each password or the error.
537+
538+ Returns
539+ -------
540+ None
506541 """
507542 textbox .configure (state = 'normal' )
508543 textbox .delete ('1.0' , 'end' )
@@ -514,6 +549,10 @@ def open_other_methods(self) -> None:
514549 """
515550 Called when the user clicks on the 'try other methods' button,
516551 this function creates a Toplevel window containing other methods of password generation.
552+
553+ Returns
554+ -------
555+ None
517556 """
518557 if self .other_methods_window is None or not self .other_methods_window .winfo_exists ():
519558 self .other_methods_window = other .OtherMethodsWindow (self )
0 commit comments