Hello there, the current version of snack.py (from newt-0.52.6-3.fc7.i386.rpm) introduced a change in the function EntryWindow() that breaks compatibility with older versions: | for n in prompts: | if (type(n) == types.TupleType): | (n, e) = n > e = Entry(entryWidth, e) | else: | e = Entry(entryWidth) The previous version enabled one to submit preformatted prompts in two styles: - prompts = ['ham', 'egg'] - prompts = [Entry(20, 'ham'), Entry(20, 'egg', hidden=True)] The latter style could be used to pass password fields etc. with the hidden attribute. However, the change above prevents this. As I can see, this change was first introduced in a Debian (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=340366) and somehow, this change found its way back to Red Hat/Fedora. Thus, I expect changing the behaviour was done by accident. I suggest removing this patch or - if this behaviour was really desired - adding additional type-checks to enable passing of Entry-Objects: if type(e) == types.StringType: e = Entry(entryWidth, e) Thank you.
It's fixed in upstream CVS, both interfaces are supported. Will be in next Fedora update.
newt-0.52.7-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
newt-0.52.7-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.