class TestItem(ExternalItem):
def action(self):
print("Foo")
input("press enter")
menu = CursesMenu()
menu.append_item(TestItem("this is a test item"))
menu.show()
instead of the expected output, all i get is a blank terminal window. however, the \<enter> keystroke still registers and sends me back to the main menu.
Note: It doesn't matter how long i wait.
The curious thing about this is that,
a) the same code works on linux:
and b) CommandItem, which from my understanding does basically the same, works on linux and windows.
i'm running curses-menu 0.5.0 on python 3.7, windows 10. curses is curses‑2.2‑cp37‑cp37m‑win_amd64 from here. if anyone could test this on other operating setups and/or look deeper into this problem, it'd be much appreciated.
Consider this simple snippet:
instead of the expected output, all i get is a blank terminal window. however, the \<enter> keystroke still registers and sends me back to the main menu. Note: It doesn't matter how long i wait.
The curious thing about this is that,
a) the same code works on linux: and b) CommandItem, which from my understanding does basically the same, works on linux and windows.
i'm running curses-menu 0.5.0 on python 3.7, windows 10. curses is curses‑2.2‑cp37‑cp37m‑win_amd64 from here. if anyone could test this on other operating setups and/or look deeper into this problem, it'd be much appreciated.