From: mlichvar Date: Wed, 11 Jul 2007 17:00:28 +0000 (+0000) Subject: - add back support for list of Entries in EntryWindow prompts in snack X-Git-Tag: r0-52-8~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a54f897e8083c9bcb828f9ab64767d622632bb4;p=thirdparty%2Fnewt.git - add back support for list of Entries in EntryWindow prompts in snack --- diff --git a/newt.spec b/newt.spec index d987be3..537b83b 100644 --- a/newt.spec +++ b/newt.spec @@ -88,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libnewt.a %changelog +- add back support for list of Entries in EntryWindow prompts in snack - fix segfault in whiptail when no entry is selected in radiolist * Fri Jun 15 2007 Miroslav Lichvar - 0.52.7-1 diff --git a/snack.py b/snack.py index e763650..fbd6ba8 100644 --- a/snack.py +++ b/snack.py @@ -826,7 +826,8 @@ def EntryWindow(screen, title, text, prompts, allowCancel = 1, width = 40, for n in prompts: if (type(n) == types.TupleType): (n, e) = n - e = Entry(entryWidth, e) + if (type(e) in types.StringTypes): + e = Entry(entryWidth, e) else: e = Entry(entryWidth)