From: msw Date: Mon, 23 Aug 1999 22:53:16 +0000 (+0000) Subject: update X-Git-Tag: r0-50~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60ab9224b2c25dc07ca4aa9624f8360d52086453;p=thirdparty%2Fnewt.git update --- diff --git a/newt.spec b/newt.spec index 53c8e2e..3a974be 100644 --- 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 +- added buttons argument to entrywindow + * Thu Aug 12 1999 Bill Nottingham - multi-state checkboxtrees. Woohoo. diff --git a/snack.py b/snack.py index 3d239ce..000593f 100644 --- 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