From 9a54f897e8083c9bcb828f9ab64767d622632bb4 Mon Sep 17 00:00:00 2001 From: mlichvar Date: Wed, 11 Jul 2007 17:00:28 +0000 Subject: [PATCH] - add back support for list of Entries in EntryWindow prompts in snack --- newt.spec | 1 + snack.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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) -- 2.47.2