Skip to content
Permalink
Branch: py2
Commits on May 7, 2016
  1. Release 3.4.0 (Python 2 backport)

    frougon committed May 7, 2016
    Merge branch 'master' into py2:
    
      Release 3.4.0
      README.rst: link to the blessings library, add link to ncurses home page
      Add 'week_start' common option, mapped to dialog's --week-start option
      Update copyright notices and demo version
      Fix typo
      Doc build: suppress warnings about :option:`--unknown-option` references
      Add demo example for Dialog.editbox_str()
      Add Dialog.editbox_str()
      Fix bug in demo.py when /etc/passwd is inexistent
  2. Release 3.4.0

    frougon committed May 7, 2016
  3. Add 'week_start' common option, mapped to dialog's --week-start option

    frougon committed May 7, 2016
    * The value may be an integer or a string (cf. dialog's man page for
    more details).
    
    * Using this requires dialog 1.3-20160126 or later.
  4. Fix typo

    frougon committed May 7, 2016
  5. Doc build: suppress warnings about :option:`--unknown-option` references

    frougon committed May 7, 2016
    * The documentation contains many references to dialog options. These
    are not defined in the pythondialog Manual, which with recent Sphinx
    (>= 1.3 or something like that) causes a lot of warnings. Fortunately,
    these can be suppressed (specifically for unknown option references)
    with 'suppress_warnings' in conf.py starting from Sphinx 1.4.0.
    
    * This is what this commit does. Alternatively, the option references
    could be replaced with dumb markup such as ``--unknown-option``.
Commits on May 6, 2016
  1. Add Dialog.editbox_str()

    frougon committed May 5, 2016
    * dialog.py (Dialog.editbox_str): new method. It is a convenience
    wrapper around Dialog.editbox() that automatically creates and deletes a
    temporary file containing the initial box contents which is passed as a
    string (Dialog.editbox() needs it in a file).
Commits on Jan 28, 2016
  1. Fix bug in demo.py when /etc/passwd is inexistent

    frougon committed Jan 28, 2016
    * examples/demo.py (MyApp.editbox_demo): display a message when
    /etc/passwd is inexistent instead of raising an exception (trying to
    display the result, which doesn't exist).
Commits on May 28, 2015
  1. Release 3.3.0 (Python 2 backport)

    frougon committed May 28, 2015
    Merge branch 'master' into py2
    
    * master:
      Release 3.3.0
      Minor changes
      Use html_theme = 'classic' with Sphinx 1.3b3 or later
      Allow passing dialog arguments via a temporary file
      Fix message for InadequateBackendVersion in _dialog_version_check()
    
    Conflicts:
    	README.rst
    	dialog.py
    	examples/demo.py
    	examples/with-autowidgetsize/demo.py
  2. Release 3.3.0

    frougon committed May 28, 2015
  3. Minor changes

    frougon committed May 28, 2015
    * doc/Dialog_class_overview.rst: fix a typo
    
    * doc/conf.py: update copyright years for the pythondialog Manual
    
    * examples/demo.py: update version number + cosmetic change
    
    * examples/with-autowidgetsize/demo.py: ditto
Commits on May 27, 2015
  1. Use html_theme = 'classic' with Sphinx 1.3b3 or later

    frougon committed May 27, 2015
    * doc/conf.py: change the HTML theme name to 'classic' if the Sphinx
    version is 1.3b3 or later (the old name 'default' is now deprecated).
  2. Allow passing dialog arguments via a temporary file

    frougon committed May 27, 2015
    * dialog.py (Dialog.__init__): new 'pass_args_via_file' parameter. The
    default value (None) enables argument passing via --file only if the
    dialog version is recent enough to offer a reliable --file
    implementation (i.e., 1.2-20150513 or later).
    
    * dialog.py (Dialog.setup_debug): new 'expand_file_opt' parameter to
    allow producing debug log files with full dialog commands as before,
    instead of dialog calls containing only one --file option followed by a
    path to a temporary file.
    
    * dialog.py (Dialog._quote_arg_for_file_opt): new method (quotes
    arguments for safe inclusion via --file).
    
    * dialog.py (Dialog._call_program): honor Dialog.pass_args_via_file and
    return a 3-tuple instead of a 2-tuple (new element: path to the
    temporary file containing the dialog arguments, or None if
    Dialog.pass_args_via_file is false).
    
    * dialog.py (Dialog._handle_program_exit): new method, which wraps
    Dialog._wait_for_program_termination() and makes sure the temporary
    file, if any, is removed when it is not needed anymore.
    
    * dialog.py (Dialog._perform): adapt to the change in the return value
    of Dialog._call_program() and use Dialog._handle_program_exit() instead
    of Dialog._wait_for_program_termination().
    
    * dialog.py (Dialog.gauge_start, Dialog.gauge_stop): similar changes.
    
    * doc/Dialog_class_overview.rst: add two notes to make it clear that the
    dialog arguments may be included indirectly via --file, depending on the
    pythondialog and dialog versions, as well as on the arguments passed to
    Dialog.__init__().
    
    * README.rst: mention the 'expand_file_opt' parameter along with
    Dialog.setup_debug().
    
    * examples/demo.py: new option (-E, --debug-expand-file-opt) to allow
    obtaining the same dialog commands as before in the file generated by
    --debug (i.e., with the --file options expanded instead of referring to
    the temporary files).
Commits on May 25, 2015
  1. Fix message for InadequateBackendVersion in _dialog_version_check()

    frougon committed May 25, 2015
    * dialog.py (Dialog._dialog_version_check): the message passed when
    raising InadequateBackendVersion had a hardcoded "the programbox widget"
    substring where it should have been using the 'feature' parameter.
Commits on Apr 9, 2015
  1. Release 3.2.2 (Python 2 backport)

    frougon committed Apr 9, 2015
    Merge branch 'master' into py2
    
    * master:
      Release 3.2.2
      Release 3.2.2rc1
    
    Conflicts:
    	README.rst
    	dialog.py
    	examples/demo.py
    	examples/with-autowidgetsize/demo.py
  2. Release 3.2.2

    frougon committed Apr 9, 2015
Commits on Apr 4, 2015
  1. Release 3.2.2rc1

    frougon committed Apr 4, 2015
  2. Merge branch 'master' into py2

    frougon committed Apr 4, 2015
    * master:
      Minor improvements to README.rst and INSTALL (formatting + date)
    
    Conflicts:
    	README.rst
  3. Merge branch 'master' into py2

    frougon committed Apr 4, 2015
    * This operation concerns all commits in the 'master' branch since
    v3.0.0-2-g05e70dd (Sun Oct 27 11:35:46 2013 +0100). There are four
    duplicate commits that were either recreated by hand (1) or
    cherry-picked (3) into the 'py2' branch after the 3.0.1 release. This is
    ugly in the log, but the files are correct.
    
    Conflicts:
    	.gitattributes
    	INSTALL
    	MANIFEST.in
    	README.rst
    	dialog.py
    	examples/demo.py
    	setup.py
  4. Update the 'with-autowidgetsize' demo

    frougon committed Apr 4, 2015
    * examples/with-autowidgetsize/demo.py: apply yesterday's demo.py
    changes to this file too.
Commits on Apr 3, 2015
  1. README.rst: fix command line for running the demo

    frougon committed Apr 3, 2015
    * README.rst: the given command only worked if the directory containing
    dialog.py was in sys.path. Prepend 'PYTHONPATH=. ' to the suggested
    command to fix this.
  2. demo: fix bug when buildlist is not available

    frougon committed Apr 3, 2015
    * demo.py: the demo used to crash on the report when the desert island
    question had not been asked because the backend was too old for
    buildlist. This is now fixed.
  3. Fix backend version check for several widgets

    frougon committed Apr 3, 2015
    * dialog.py:
        - minimum version for buildlist is 1.2-20121230, not 1.2;
        - minimum version for programbox is 1.1-20110302, not 1.1;
        - minimum version for rangebox is 1.2-20121230, not 1.2;
        - minimum version for treeview is 1.2-20121230, not 1.2.
    
    * demo.py: analogous changes to display user-friendly messages when the
    backend is too old.
  4. demo: provide fallback for Python versions that don't have 'callable'

    frougon committed Apr 3, 2015
    * examples/demo.py: provide a custom 'callable' function for old Python
    versions (such as 3.1) that don't have the 'callable' builtin.
  5. demo: don't use contextlib anymore

    frougon committed Apr 3, 2015
    * examples/demo.py: contextlib is nice but not really useful here. Since
    its use in this file causes problems under Python 3.1 at least, don't
    use it anymore for now.
  6. Workaround for old dialog versions that print the version on stdout

    frougon committed Apr 3, 2015
    * dialog.py: some dialog versions print the version on stdout when using
    --print-version (e.g., 1.1-20100428). In this case, the output read on
    stderr is empty. This commit works around this problem by rerunning the
    dialog program, capturing its stdout instead of stderr. The penalty is
    minimal since the backend version is cached.
Commits on Oct 30, 2014
  1. Release 3.2.1

    frougon committed Oct 30, 2014
  2. Fix awkward wording in the license text for the tutorial example.py

    frougon committed Oct 30, 2014
    * doc/intro/example.py: replace "Neither the name of the Florent Rougon
    (...)" with something more appropriate.
  3. [Manual] Improve the tutorial

    frougon committed Oct 30, 2014
    * doc/intro/example.py: remove the useless "import dialog" statement at
    the beginning of the file
    
    * Expand on the example:
      - introduce the msgbox and infobox widgets as well;
      - present the 'title', 'backtitle', 'width' and 'height' common
        options;
      - show how to deal with the Dialog exit codes;
      - mention the autowidgetsize feature;
      - suggest good practices such as locale.setlocale(locale.LC_ALL, '')
        at the beginning of the program.
Commits on Oct 18, 2014
  1. Add a label for the Glossary in the doc

    frougon committed Oct 18, 2014
    * doc/glossary.rst: add a label before the Glossary section (the
    sphinx-build program from Debian unstable complains about a missing
    label without this change).
Older
You can’t perform that action at this time.