Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22472
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <prvs=432cc6fd8=jeanmichel@sequans.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'package,': 0.04; 'sphinx': 0.07; 'lang': 0.09; 'anyway': 0.11; '>>>': 0.14; '[y,': 0.16; 'boolean': 0.16; 'lambda': 0.16; 'sphinx,': 0.16; 'stuff,': 0.16; 'subject:form': 0.16; 'subject:make': 0.16; 'subject:simple': 0.16; 'to:name:python list': 0.16; "value',": 0.16; "{'foo':": 0.16; '\xe9crit': 0.16; 'wrote:': 0.19; 'example': 0.19; 'import': 0.20; 'print': 0.21; 'package.': 0.21; 'header:In-Reply-To:1': 0.22; 'select': 0.22; 'that.': 0.24; 'to:2**1': 0.25; 'header :User-Agent:1': 0.26; 'question': 0.28; 'feature,': 0.28; 'foo': 0.28; 'skip:q 20': 0.28; 'subject:some': 0.28; 'no,': 0.28; 'hi,': 0.29; 'feature': 0.31; 'help,': 0.31; 'handle': 0.33; 'asking': 0.34; 'cool': 0.34; 'to:addr:python-list': 0.35; 'url:org': 0.35; 'there': 0.36; 'does': 0.36; 'thank': 0.36; 'level': 0.36; 'being': 0.36; 'subject:: ': 0.37; 'some': 0.39; 'to:addr:python.org': 0.39; 'charset:windows-1252': 0.63; 'for.': 0.63; 'high': 0.63; 'klein': 0.65; 'received:194': 0.69; 'subject:"': 0.71; 'low': 0.86 |
| X-IronPort-AV | E=Sophos;i="4.75,357,1330902000"; d="scan'208";a="302753" |
| X-Virus-Scanned | amavisd-new at zimbra.sequans.com |
| Date | Mon, 02 Apr 2012 16:52:16 +0200 |
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
| User-Agent | Mozilla-Thunderbird 2.0.0.24 (X11/20100328) |
| MIME-Version | 1.0 |
| To | Stéphane Klein <stephane@harobed.org>, Python List <python-list@python.org> |
| Subject | Re: I look for a package to make some simple console "form" |
| References | <jlc7k2$5l5$1@dough.gmane.org> <4F79AFA8.2090409@sequans.com> <4F79B932.7030102@harobed.org> |
| In-Reply-To | <4F79B932.7030102@harobed.org> |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1218.1333378337.3037.python-list@python.org> (permalink) |
| Lines | 52 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1333378337 news.xs4all.nl 6895 [2001:888:2000:d::a6]:46007 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:22472 |
Show key headers only | View raw
Stéphane Klein wrote:
> Le 02/04/2012 15:54, Jean-Michel Pichavant a écrit :
>> Stéphane Klein wrote:
>>> Hi,
>>>
>>> I look for a package to make some console "form".
>>>
>>> It's a standard stuff, I think there are a package to do that.
>>>
>>> Example :
>>>
>>> What is your name ?
>>> Select your lang [EN, FR, DE…] ?
>>> Do you want … [Y, N] ?
>>>
>>> Type of field :
>>>
>>> * textline
>>> * select choice
>>> * boolean question
>>>
>>> Thank for your help,
>>> Stéphane
>> Hi,
>>
>> Have a look at
>> http://excess.org/urwid/
>>
>
> No, I don't look for high level feature based on ncurse…
>
> I would like very low level feature, form like sphinx quick start or
> modern-package-template…
>
> Regards,
> Stephane
>
Don't know if there is such package. There's nothing that rawinput
cannot handle in what you're asking for.
Anyway since you refered to sphinx, it does not use any package, look at
quickstar.py, you may reuse their do_prompt.
And because being lazy is cool :
from sphinx import quickstart
d = {}
quickstart.do_prompt(d, 'foo', 'enter the foo value', '5', lambda x: int(x))
print d
< {'foo': 8}
JM
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: I look for a package to make some simple console "form" Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-04-02 16:52 +0200
csiph-web