v3.2.2 - Maintenance release
Version 3.2.2
🛠️ Bug fixes:
- Fixed translation support (
gettext
):- Locale detection has been fixed in 3.1.1 (deprecation of
locale.getdefaultlocale
) - However, on frozen distributions on Windows (e.g. with
pyinstaller
), function
locale.getlocale
is returning(None, None)
instead of proper locale infos - Added a workaround: on Windows, if locale can't be detected, we now use the
Windows API to retrieve it (using theGetUserDefaultLocaleName
function) - Issue #68 - Windows: gettext translation is not working on frozen applications
- Locale detection has been fixed in 3.1.1 (deprecation of
- Embedded Qt console:
- Fixed default encoding detection on frozen applications on Windows
- Issue #69 - Windows/Qt console: output encoding is not detected on frozen applications
Version 3.2.1
🛠️ Bug fixes:
- Tests only:
qthelpers.close_widgets_and_quit
now ignores deleted widgets
💥 Changes:
dataset.ImageChoiceItem
anddataset.ButtonItem
: addedsize
argument to set the icon sizedataset.io
reader and writer classes: removed deprecatedwrite_unicode
method
Version 3.2.0
🛠️ Bug fixes:
- Issue #67 - JSONReader/Deserializing object list: TypeError: 'NoneType' object is not subscriptable
💥 Changes:
qthelpers.qt_wait
: addedshow_message
andparent
arguments (backward compatible)qthelpers.qt_app_context
: removedfaulthandler
support (this need to be handled at the application level, see for example DataLab's implementation)- Disabled command line argument parsing in
guidata.env
module:- The
guidata
library is parsing command line arguments for the purpose of creating the environment execution object namedexecenv
(seeguidata.env
module). This object is used to determine the execution environment mainly for testing purposes: for example, to bypass the Qt event loop when running tests thanks to the--unattended
command line option. - However this argument parsing is not always desirable, for example when using
guidata
as a dependency in another library or application. This is why the parsing mechanism is now disabled by default, and may be enabled by setting the environment variableGUIDATA_PARSE_ARGS
to1
(or any other non-empty value). As of today, it is still unclear if there will be a need to enable this mechanism in the future, so this is why the environment variable is used instead of a function argument.
- The
- Removed deprecated
guidata.disthelpers
module (we recommend using PyInstaller instead)