]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
update
authormsw <msw>
Mon, 23 Aug 1999 22:53:16 +0000 (22:53 +0000)
committermsw <msw>
Mon, 23 Aug 1999 22:53:16 +0000 (22:53 +0000)
newt.spec
snack.py

index 53c8e2e64c1396d38bfab42df77e9aad7d264cd6..3a974be20363a2ff49daae606ee09bee3a9c83fb 100644 (file)
--- a/newt.spec
+++ b/newt.spec
@@ -2,7 +2,7 @@ Summary: A development library for text mode user interfaces.
 Name: newt
 %define version 0.50
 Version: %{version}
-Release: 7
+Release: 8
 Copyright: LGPL
 Group: System Environment/Libraries
 Source: ftp://ftp.redhat.com/pub/redhat/code/newt/newt-%{version}.tar.gz
@@ -55,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT
 %postun -p /sbin/ldconfig
 
 %changelog
+* Mon Aug 23 1999 Matt Wilson <msw@redhat.com>
+- added buttons argument to entrywindow
+
 * Thu Aug 12 1999 Bill Nottingham <notting@redhat.com>
 - multi-state checkboxtrees. Woohoo.
 
index 3d239ce017143cb564cdefa7800a166e522486d6..000593fa29a8f6d7d9e31a08bae0625c0d1b17be 100644 (file)
--- a/snack.py
+++ b/snack.py
@@ -460,8 +460,8 @@ def ButtonChoiceWindow(screen, title, text,
     return bb.buttonPressed(g.runOnce())
 
 def EntryWindow(screen, title, text, prompts, allowCancel = 1, width = 40,
-               entryWidth = 20):
-    bb = ButtonBar(screen, [ 'Ok', 'Cancel' ]);
+               entryWidth = 20, buttons = [ 'Ok', 'Cancel' ]):
+    bb = ButtonBar(screen, buttons);
     t = TextboxReflowed(width, text)
 
     count = 0