Closed MoralCode closed 2 years ago
Still needs:
i think this is nearly ready. its a little closer to a hack than a production grade solution so id like to get feedback from a maintainer about whether this fits with the console-menu architecture and what testing/documentation/linting standards are needed to merge to the main branch
made some updates including:
MenuItem
separator into a variable so it can be customized if needed (maybe this should be part of the menu styling? that seems like a fairly major change though)
heres a new screenshot to demo some of the new functionality, particularly the handling of user-provided newlines in any part of the menu (shown here in the prologue and menu items)
here is the gist used to test the newer features: https://gist.github.com/MoralCode/51859f5b7fc9aeebcb8f0b64d012fb24
@aegirhall I saw that #45 got merged.do you want me to take a crack at resolving these merge conflicts?
@MoralCode sure that would be great, thanks! -Aegir
wow that was easier than i thought. pretty much just a swap-in of ansiwrap
instead of textwrap
. my gist with sample code has been updated to demo the colors (i think, @mon may need to check that im using it right).
that 0 of 12 checks passed is mildly concerning...
It's fine... it was from some simple pycodestyle errors. I merged your PR and fixed the errors. All builds are passing now. Thanks!
Thanks @MoralCode !
fixes #29
see the linked issue for some of the discussion on how this is accomplished. TL;DR if a list is returned by
MenuItem.show()
, it will be handles by an override ofrow
inMenuItemsSection
to generate one line of output for each item in the list.