Closed sjohnson-FLL closed 1 year ago
Discovered the cause of this: I failed to convert my CursesMenu
to a SubmenuItem
before appending it to the main menu.
Closing this issue, but if there's an opportunity to add type checking for this sort of thing in the future, I think that would be super helpful. I doubt I am the first one to make this mistake.
Nice module by the way, super useful!
Version
Other (include below)
Operating System
Windows
Environment
Running from VSCode External Terminal
What happened?
After setting up my menu with function items only, things worked as-expected. However, after adding submenu items as well, I get the exception below. The line of my code immediately before getting the exception is
main_menu.show()
.Nothing in the backtrace references any of my code, which was surprising. Is this most likely a problem with what I am doing, or is something else going on?
Let me know if any other details would be helpful. Thanks!
Python 3.11.1 curses-menu 0.7.1