You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyType_Ready() should be used instead of "ob_type = &PyType_Type;"
The demo contains "Option choisie :" which should be translated :-)
the call::
PyErr_SetString(PyExc_RuntimeError,
"remove_lom: can't find Menu Object");
is wrong: the calling function does not check the error condition, it will be ignored in any case because the only called is the tp_dealloc
find_po() is defined but never called
the free() method does not do anything, it contains commented out code.
I took the curses.panel module as a starting point as well but have made rather a bit more progress with the extension. The attached patch includes a full wrapper around the curses menu extension, tests, documentation, and the necessary additions to setup.py. Feedback would be much appreciated as I'm also most of the way through a wrapper for the curses form extension and would like to get it finished up shortly.
Activity
ffrederick commentedon May 21, 2007
Here's both menu & items wrappers for ncurses based on curses_panel.
Feedback appreciated before I try to add support for other functions.
Regards,
Fabian
BreamoreBoy commentedon Jul 9, 2010
Would someone please comment on the patch, I can't because I don't know anything about the Python C API.
amauryfa commentedon Jul 22, 2010
The patch should be amended for python3, then:
PyErr_SetString(PyExc_RuntimeError,
"remove_lom: can't find Menu Object");
is wrong: the calling function does not check the error condition, it will be ignored in any case because the only called is the tp_dealloc
In short, this patch needs work.
bentrofatter commentedon Oct 18, 2012
I took the curses.panel module as a starting point as well but have made rather a bit more progress with the extension. The attached patch includes a full wrapper around the curses menu extension, tests, documentation, and the necessary additions to setup.py. Feedback would be much appreciated as I'm also most of the way through a wrapper for the curses form extension and would like to get it finished up shortly.