Tokenize the line on the newlines and center each token
Tokenize the line on the newlines and center each token


"yellow" but rather something else. Python is throwing a fit because you have passed a string when the function is looking for something else"yellow" # Reset theme
[stdout.write(
# Make space
" "*len(self.menu_cursor)
+ ( # If shortcuts are enabled this code will run (Themes shortcut)
# Bracket 1 style
("".join([style for style in self.shortcut_brace_theme])+"[")
# Shortcut key
+ self.shortcut_keys[p] +
# Bracket 2 style
("".join([style for style in self.shortcut_brace_theme])+"] ") if self.shortcuts else "")
+option+"\n"
) for option in self.choices]
stdout.flush()listbox = Listbox(["entry1", "entry2", "entry3"],
title=f"{Style.bold}This is a test title :){Style.reset}",
shortcuts=True,
shortcut_keys=["A", "B", "C"]
)
print(listbox.show())