2020-06-03 19:20:12 +08:00
|
|
|
#
|
|
|
|
# HiddenEye Copyright (C) 2020 DarkSec https://dark-sec-official.com
|
|
|
|
# This program comes with ABSOLUTELY NO WARRANTY; for details read LICENSE.
|
|
|
|
# This is free software, and you are welcome to redistribute it
|
|
|
|
# under certain conditions; you can read LICENSE for details.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-06-03 19:09:46 +08:00
|
|
|
import Defs.ThemeManager.theme as theme
|
2020-08-05 16:06:24 +08:00
|
|
|
|
2020-06-03 19:09:46 +08:00
|
|
|
default_palette = theme.default_palette
|
|
|
|
|
2020-08-05 16:06:24 +08:00
|
|
|
|
2020-06-03 19:09:46 +08:00
|
|
|
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:
|
2020-08-13 18:29:52 +08:00
|
|
|
print(
|
|
|
|
"".join(word.ljust(col_width) for word in row).format(
|
|
|
|
default_palette[0], default_palette[2]
|
|
|
|
)
|
|
|
|
)
|