This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Curses Menu
Type: enhancement Stage: patch review
Components: Extension Modules Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: amaury.forgeotdarc, bentrofatter, ffrederick, maarten, serhiy.storchaka, ysj.ray
Priority: normal Keywords: patch

Created on 2007-05-21 21:00 by ffrederick, last changed 2022-04-11 14:56 by admin.

Files
File name Uploaded Description Edit
cursesmenu.diff ffrederick, 2007-05-21 21:00 cursesmenupatch1
curses_menu.patch bentrofatter, 2012-10-18 05:44 review
Pull Requests
URL Status Linked Edit
PR 21933 open maarten, 2020-08-21 03:42
Messages (4)
msg52659 - (view) Author: Fabian Frederick (ffrederick) Date: 2007-05-21 21:00
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
msg109649 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-09 00:28
Would someone please comment on the patch, I can't because I don't know anything about the Python C API.
msg111158 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2010-07-22 09:55
The patch should be amended for python3, then:
- 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.

In short, this patch needs work.
msg173233 - (view) Author: Benjamin Trofatter (bentrofatter) Date: 2012-10-18 05:44
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.
History
Date User Action Args
2022-04-11 14:56:24adminsetgithub: 44985
2020-08-21 03:42:56maartensetpull_requests: + pull_request21047
2020-08-21 00:27:55maartensetpull_requests: - pull_request21045
2020-08-21 00:27:14maartensetnosy: + maarten

pull_requests: + pull_request21045
stage: needs patch -> patch review
2017-11-01 18:03:59serhiy.storchakasetassignee: serhiy.storchaka

nosy: + serhiy.storchaka
versions: + Python 3.7, - Python 3.4
2014-12-31 16:23:19akuchlingsetnosy: - akuchling
2014-02-03 19:07:00BreamoreBoysetnosy: - BreamoreBoy
2012-10-18 05:44:36bentrofattersetfiles: + curses_menu.patch
versions: + Python 3.4, - Python 3.2
nosy: + bentrofatter

messages: + msg173233
2010-11-12 20:59:14akuchlingsetassignee: akuchling -> (no value)
2010-07-22 14:36:33ysj.raysetnosy: + ysj.ray
2010-07-22 09:55:20amaury.forgeotdarcsetnosy: + amaury.forgeotdarc

messages: + msg111158
stage: test needed -> needs patch
2010-07-09 01:40:51brian.curtinsettype: enhancement
stage: test needed
2010-07-09 01:39:40brian.curtinsetnosy: akuchling, ffrederick, BreamoreBoy
components: + Extension Modules, - Library (Lib)
versions: - Python 3.1, Python 2.7
2010-07-09 00:28:13BreamoreBoysetversions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6
nosy: + BreamoreBoy

messages: + msg109649

components: + Library (Lib), - Extension Modules
2008-01-21 13:48:40akuchlingsetassignee: akuchling
nosy: + akuchling
2007-05-21 21:00:33ffrederickcreate