Pashua Changelog

What's new in Pashua 0.11

May 28, 2018
  • Pashua is now Open Source, licensed under the 3-clause BSD license. You can find the source code on GitHub.
  • Option -e has been deprecated for some time as is now removed. If this option is used, a warning will be written to stderr, but apart from that, the option does not have any effect. Note: in some cases (notably: passing a non-UTF8 dialog configuration via stdin) this can cause an error.
  • The “image” element got new attributes to set an exact size: width and height (while up to now, it was only possible to set maximum width and height). While by default the image will not be upscaled if it is smaller than the defined size, this can be achieved by setting upscale = 1
  • Modernized icon
  • Changed: When using an “openbrowser” element which currently holds the path to a folder and the button for choosing an item is used, in previous versions the subsequent dialog displayed the parent folder of the selected folder, without pre-selecting the folder. This behavior was intro­duced intentionally years ago with regard to choosing bundles, but no longer seems useful to me. The new behavior is: if the selected value is a directory, the dialog shows the content of the directory, so if you hit the “OK” button without choosing anything else, the openbrowser’s value will remain unchanged.
  • Fixed display glitch regarding focus ring around buttons
  • Combo boxes: using the new “rows” property, you can control the number of visible items
  • The minimum supported OS X version is now 10.9 (previously: 10.6)

New in Pashua 0.10.3 (Dec 23, 2015)

  • Savebrowser: when default value is specified, the filename in the dialog is set accordingly
  • Fix combobox height issue introduced with v0.10.2

New in Pashua 0.10.2 (Nov 30, 2015)

  • Tool-tips can now be multi-line by using \n for line breaks.
  • Bug fix: when a dialog should be closed but stays on screen due to mandatory elements being empty, check-boxes do no longer lose their status.

New in Pashua 0.10.1 (Aug 21, 2015)

  • Fixed a problem that could result in an inaccurate button return value under certain circumstances

New in Pashua 0.10 (Nov 10, 2014)

  • When displaying images, the pixel size is used for calculating sizes, and the image resolution is ignored
  • Slightly reduced the vertical distance between UI items and their labels
  • New application icon
  • The command-line switch -e for setting the encoding is no longer supported and is ignored if used. (Which has been marked as deprecated since January 2014.) Pashua now expects input as UTF-8 and will output resulting values as UTF-8, but will usually be able to auto-detect, if another encoding (MacRoman, Latin1 etc.) is used. If input is in another encoding, Pashua will use the same encoding for the output.
  • Mandatory UI elements can be defined by the new mandatory attribute, and a dialog cannot be closed as long as mandatory fields are empty.
  • Added ability to set placeholder values (attribute placeholder) for element types combobox, openbrowser, savebrowser, textfield
  • Fixed attribute tooltip attribute for types cancelbutton and defaultbutton
  • Removed the number of examples that are included with Pashua. Remaining examples can now be found in GitHub repositories.

New in Pashua 0.9.5.1 (Jun 20, 2014)

  • Slightly improved the documentation
  • There is no longer a maximum allowed “rely” value
  • Fixed errors in doc comments inside “Pashua.py”

New in Pashua 0.9.5 (Jan 20, 2014)

  • Removed legacy code and deprecated API usages, which is why Pashua requires Mac OS X 10.6 or later
  • The “image” element respects the Exif orientation tag when displaying photos
  • The drag cursor (for “openbrowser” and “savebrowser” elements) is no longer the “copy” cursor, but the “link”, which is more appropriate
  • Retina icons in the UI. (Actually this only applies to the “clear” button in “openbrowser” and “savebrowser” elements.)
  • The “clear” button in “openbrowser” and “savebrowser” elements is re-displayed when an item is dragged onto the element after the element was cleared
  • The window position can be restored upon next launch (on a per-application basis). See “autosavekey” in documentation.
  • The example code for all languages uses UTF-8 as encoding. Using an encoding other than UTF-8 is deprecated, and support for setting the encoding will be removed in a future version.
  • Fixed the Tcl example
  • Updated and modernized documentation

New in Pashua 0.9.4.7 (Nov 29, 2011)

  • Fixes a timezone-related issue in element “date”.
  • Fixed: When an element “date” was displayed in textual mode, the stepper for the value was slightly cut off at the top.

New in Pashua 0.9.4.6 (Sep 19, 2011)

  • Elements “openbrowser” and “closebrowser”: when the field contains a string, a clear button will be visible that can be used to erase the field’s content.
  • Element “combobox” has a new attribute “completion” which can be set to 0 (no completion), 1 (completes the first item in the completion list which matches the entered string, case-sensitive -- this is the default behaviour) or 2 (ditto, but case-insensitive)
  • Elements of type “date” now return a correct and usable date string. If date and time can be selected in the GUI, it’s in “yyyy-mm-dd hh:mm” format, if it’s a date without time the format is “yyyy-mm-dd” or, in case of a time without a date, “hh:mm”. In any case, the timezone is no longer returned, as there was no way to define it, anyway.

New in Pashua 0.9.4.5 (Apr 28, 2011)

  • Element types "openbrowser" and "savebrowser": Improved behaviour regarding pre-selected folders in the file dialog
  • English localization: corrected menu item "Hide Others" (was "Hide Pashua")
  • Fixed some errors in the documentation
  • Added a Groovy example
  • AppleScript example: Fixed an error that could occur when the AppleScript was launched from inside another application
  • Rexx example: Image path is set correctly, and hence the image will now be displayed in the dialog
  • PHP example: Code modernizations (not compatible with PHP4)
  • Python example: Removed output of dialog's return values
  • Tcl example: fixed (did not work, due to a syntax error)

New in Pashua 0.9.4 (Dec 15, 2009)

  • Changed return values to conform to Pashua's behaviour before 0.9.3: buttons and checkboxes return 1 when clicked / checked and 0 if not clicked / checked, read-only elements (line, text) do not return anything any longer.