mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Created method to sort any list as menu
This commit is contained in:
parent
6b3c59c7d4
commit
45df961f4d
|
@ -8,7 +8,10 @@ import os
|
|||
default_palette = theme.default_palette
|
||||
module_loading_message = simple_informant.module_loading_message
|
||||
|
||||
|
||||
def print_sorted_as_menu(sorting_list):
|
||||
col_width = max(len(word) for row in sorting_list for word in row) + 2
|
||||
for row in sorting_list:
|
||||
print("".join(word.ljust(col_width) for word in row).format(default_palette[0], default_palette[2]))
|
||||
|
||||
|
||||
def start_main_menu():
|
||||
|
|
Loading…
Reference in New Issue
Block a user