pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-dialog py-dialog: updated to 3.5.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/52213d4c6fb5
branches:  trunk
changeset: 458393:52213d4c6fb5
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Sep 15 08:19:46 2021 +0000

description:
py-dialog: updated to 3.5.2

Release 3.5.2

Update ChangeLog.init (improve some log messages)

demo: add example of an msgbox with timeout

* examples/demo.py: add method MyApp.timeout_demo(), which shows how to
detect a timeout when an msgbox has been presented to the user.

Fix related to the 'timeout' option (--timeout for dialog)

* dialog.py (Dialog._perform): ignore the dialog output when a timeout
occurred, which we know thanks to the exit code. Without this change,
output parsing or checking (e.g., in Dialog._widget_with_no_output())
would be broken by the '\ntimeout\n' string printed by dialog in such
cases (seen with msgbox, at least).

It might be that parsing is still disturbed for some widgets when a
timeout occurs, if they never produce an empty output in a no-timeout
situation: this remains to be checked. Also, it appears that the
--timeout option doesn't work with all widgets in the dialog
backend (tested with dialog 1.3-20201126: 'msgbox', 'checklist' and
'menu' support --timeout; 'inputbox' and 'mixedform' don't; other
widgets untested with this option).

Show use of d.add_persistent_args(["--no-nl-expand"]) in examples

* Using this option is quite relevant when using pythondialog. Thanks to
ChristianTacke for the report. Closes:
<https://github.com/frougon/pythondialog/issues/8>.

Improve support for the --timeout dialog option

* Set DIALOG_TIMEOUT in the environment when invoking dialog; this
allows us to distinguish between DIALOG_TIMEOUT and DIALOG_ESC. Add
the corresponding TIMEOUT attribute to the Dialog class.

diffstat:

 devel/py-dialog/Makefile |   4 ++--
 devel/py-dialog/distinfo |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r 2b09ae551578 -r 52213d4c6fb5 devel/py-dialog/Makefile
--- a/devel/py-dialog/Makefile  Wed Sep 15 08:06:58 2021 +0000
+++ b/devel/py-dialog/Makefile  Wed Sep 15 08:19:46 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2020/03/20 11:57:30 nia Exp $
+# $NetBSD: Makefile,v 1.8 2021/09/15 08:19:46 adam Exp $
 
-DISTNAME=      pythondialog-3.5.1
+DISTNAME=      pythondialog-3.5.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^python//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pythondialog/}
diff -r 2b09ae551578 -r 52213d4c6fb5 devel/py-dialog/distinfo
--- a/devel/py-dialog/distinfo  Wed Sep 15 08:06:58 2021 +0000
+++ b/devel/py-dialog/distinfo  Wed Sep 15 08:19:46 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2020/02/04 17:17:06 adam Exp $
+$NetBSD: distinfo,v 1.6 2021/09/15 08:19:46 adam Exp $
 
-SHA1 (pythondialog-3.5.1.tar.gz) = f7ade8eeb56931037182fdbe6f63e58262cd327c
-RMD160 (pythondialog-3.5.1.tar.gz) = c4c98fcfe636c67007416f2cb7f81a4e5ba9b9a6
-SHA512 (pythondialog-3.5.1.tar.gz) = 20171e6af9aa397365b1666601a7b0bd630f9ac70ad785f330db06cff4d99abff949caddbf377dccf874aa8150fe9508e9aa149b98d7727d8d15ca1a81b96445
-Size (pythondialog-3.5.1.tar.gz) = 1485873 bytes
+SHA1 (pythondialog-3.5.2.tar.gz) = 25d6dc406057e1df3a00ad15f0dd75c8bcae45ba
+RMD160 (pythondialog-3.5.2.tar.gz) = 055d749cc3ffb72c228076a9df64515d2c03d946
+SHA512 (pythondialog-3.5.2.tar.gz) = 6ca7d9dfa87492d59bbf321b1f3dc0146084e42a8efc79377b16c2b80eb5485b23ae4a2b35d7401c9915883d2ad3e34e80e0e6ad8b44f04a1bdad0d4eabb95fd
+Size (pythondialog-3.5.2.tar.gz) = 1510472 bytes



Home | Main Index | Thread Index | Old Index