]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- fix crash in EntryWindow when prompts is list of tuples (patch from debian)
authormlichvar <mlichvar>
Thu, 12 Oct 2006 07:47:55 +0000 (07:47 +0000)
committermlichvar <mlichvar>
Thu, 12 Oct 2006 07:47:55 +0000 (07:47 +0000)
snack.py

index ff6d8d440ea5682b23df46b79cd7b8d96b345103..2fa0caa70f83feefaf8d0dd04ad790500979dfcf 100644 (file)
--- a/snack.py
+++ b/snack.py
@@ -789,6 +789,7 @@ 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)
         else:
             e = Entry(entryWidth)