In this release, test coverage is 74%.
💥 New features:
- MultipleChoiceItem: implemented
callback
property feature (was unexpectedly not supported)
🛠️ Bug fixes:
- Issue #78 - PySide6 on Linux:
AttributeError: 'DataFrameView' object has no attribute 'MoveLeft'
- Issue #77 - PyQt6/PySide6 on Linux:
AttributeError: type object 'PySide6.QtGui.QPalette' has no attribute 'Background'
- Add 'Monospace' and 'Menlo' to the list of fixed-width supported fonts
- Font warning message in configtools.py: replace
print
bywarnings.warn
In this release, test coverage is 74%.
🛠️ Bug fixes:
- Light/dark theme support:
- Fix default color mode issues
- Color theme test: allow to derive from, so that the test may be completed by other widgets
In this release, test coverage is 74%.
🛠️ Bug fixes:
- Light/dark theme support:
- Auto light/dark theme: quering OS setting only once, or each time the
set_color_mode('auto')
function is called - Fix console widget color theme: existing text in console widget was not updated when changing color theme
- Fixed issue with dark theme on Windows: the windows title bar background was not updated when the theme was changed from dark to light (the inverse was working) - this is now fixed in
guidata.qthelpers.win32_fix_title_bar_background
function - Added
guidata.qthelpers.set_color_mode
function to set the color mode ('dark', 'light' or 'auto' for system default) - Added
guidata.qthelpers.get_color_mode
function to get the current color mode ('dark', 'light' or 'auto' for system default) - Added
guidata.qthelpers.get_color_theme
function to get the current color theme ('dark' or 'light') - Added
guidata.qthelpers.get_background_color
function to get the current backgroundQColor
associated with the current color theme - Added
guidata.qthelpers.get_foreground_color
function to get the current foregroundQColor
associated with the current color theme - Added
guidata.qthelpers.is_dark_theme
function to check if the current theme is dark) - As a consequence,
guidata.qthelpers.is_dark_mode
andguidata.qthelpers.set_dark_mode
functions are deprecated, respectively in favor ofguidata.qthelpers.is_dark_theme
andguidata.qthelpers.set_color_mode
- Auto light/dark theme: quering OS setting only once, or each time the
In this release, test coverage is 74%.
💥 New features:
- Improved dark/light mode theme update:
- The theme mode may be changed during the application lifetime
- Added methods
update_color_mode
onCodeEditor
andConsoleBaseWidget
widgets
In this release, test coverage is 74%.
🛠️ Bug fixes:
-
Configuration initialization on Windows:
- For various reasons, a
PermissionError
exception may be raised when trying to remove the configuration file on Windows, just after having created it for the first time. This is due to the fact that the file is still locked by the file system, even if the file has been closed. This is a known issue with Windows file system, and the solution is to wait a little bit before trying to remove the file. - To fix this issue, a new
try_remove_file
function has been added to theuserconfig
module, which tries multiple times to remove the file before raising an exception.
- For various reasons, a
-
Moved back
conftest.py
to thetests
folder (was in the root folder), so thatpytest
can be executed with proper configuration when running the test suite from the installed package
In this release, test coverage is 74%.
🛠️ Bug fixes:
- Add support for NumPy 2.0:
- Use
numpy.asarray
instead ofnumpy.array(..., copy=False)
- Remove deprecated
numpy.core.multiarray
module import
- Use
In this release, test coverage is 74%.
🛠️ Bug fixes:
- PR #74 -
configtools.font_is_installed
: fix PySide2 compat. issue (thanks to @xiaodaxia-2008) - Creating a dataset using the
create
class method:- Before, passing unknown keyword arguments failed silently (e.g.
MyParameters.create(unknown=42)
). - Now, an
AttributeError
exception is raised when passing unknown keyword arguments, as expected.
- Before, passing unknown keyword arguments failed silently (e.g.
- Processing Qt event loop in unattended mode before closing widgets and quitting the application, so that all pending events are processed before quitting: this includes for instance the drawing events of widgets, which may be necessary to avoid a crash when closing the application (e.g. if drawing the widget is required for some reason before closing it) or at least to ensure that test coverage includes all possible code paths.
ℹ️ Other changes:
- Preparing for NumPy V2 compatibility: this is a work in progress, as NumPy V2 is not yet released. In the meantime, requirements have been updated to exclude NumPy V2.
- Internal package reorganization: moved icons to
guidata/data/icons
folder - The
delay
command line option for environment execution objectexecenv
is now expressed in milliseconds (before it was in seconds), for practical reasons - Explicitely exclude NumPy V2 from the dependencies (not compatible yet)
In this release, test coverage is 74%.
💥 New features:
- New Sphinx autodoc extension:
- Allows to document dataset classes and functions using Sphinx directives, thus generating a comprehensive documentation for datasets with labels, descriptions, default values, etc.
- The extension is available in the
guidata.dataset.autodoc
module - Directives:
autodataset
: document a dataset classautodataset_create
: document a dataset creation functiondatasetnote
: add a note explaining how to use a dataset
BoolItem
/TextItem
: add support for callbacks when the item value changes
🛠️ Bug fixes:
- Documentation generation: automatic requirement table generation feature was failing
when using version conditions in the
pyproject.toml
file (e.g.pyqt5 >= 5.15
). - Issue #72 - unit test leave files during the build usr/lib/python3/dist-packages/test.json
- Issue #73 -
ChoiceItem
radio buttons are duplicated when using callbacks
In this release, test coverage is 76%.
🛠️ Bug fixes:
- Issue #71 - Random segmentation faults with applications embedding
CodeEditor
- Issue #70 - PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/guidata/tests/data/genreqs/requirements.rst'
In this release, test coverage is 76%.
💥 New features:
dataset.io.h5fmt.HDF5Reader.read
method: added newdefault
argument to set default value for missing data in the HDF5 file (backward compatible). The default value ofdefault
isNoDefault
(a special value to indicate that no default value should be used, and that an exception should be raised if the data is missing).widgets.codeeditor.CodeEditor
: added newinactivity_timeout
argument to set the time (in milliseconds) to wait after the user has stopped typing before emitting theCodeEditor.SIG_EDIT_STOPPED
signal.- Added
execenv.accept_dialogs
attribute to control whether dialogs should be automatically accepted or not (default isNone
, meaning no automatic acceptance): this allows more coverage of the test suite. For now, this attribute has only been proven useful intests/dataset/test_all_features.py
. - Added unit tests for HDF5 and JSON serialization/deserialization:
- Testing an arbitrary data model saved/loaded to/from HDF5 and JSON files, with various data sets and other data types.
- Testing for backward compatibility with previous versions of the data model (e.g. new attributes, removed attributes, etc.)
guidata.dataset.io
module is now deprecated and will be removed in a future release. Please useguidata.io
instead. This change is backward compatible (the old module is still available and will be removed in a future release). The motivation for this change is to simplify the module structure and to help understand that the scope of theio
module is not limited todataset.DataSet
objects, but may be used for any kind of data serialization/deserialization.
📖 Documentation:
- Added missing
DataSetEditDialog
andDataSetEditLayout
classes - Added missing inheritance/member details on some classes
- Reduced table of contents depth in left sidebar for better readability
In this release, test coverage is 72%.
💥 New features:
- Array editor now supports row/column insertion/deletion:
- Added
variable_size
argument tosetup_and_check
method - The feature is disabled by default (backward compatible)
- It supports standard arrays, masked arrays, record arrays and N-dimensional arrays
- Added
- New dataset read-only mode:
- Added
readonly
argument toDataSet
constructor - This is useful to create a dataset that will be displayed in read-only mode (e.g. string editing widgets will be in read-only mode: text will be selectable but not editable)
- The items remain modifiable programmatically (e.g.
dataset.item = 42
)
- Added
- New dataset group edit mode:
- Added
mode
argument toDataSetGroup.edit
method, with the following options:mode='tabs'
(default): each dataset is displayed in a separate tabmode='table'
: all datasets are displayed in a single table
- In the new table mode, the datasets are displayed in a single table with one row per dataset and one column per item
- Clicking on a row will display the corresponding dataset in a modal dialog box
- Added
🛠️ Bug fixes:
- Qt console:
- Fixed
RuntimeError: wrapped C/C++ object of type DockableConsole has been deleted
when closing the console widget (parent widget, e.g. aQMainWindow
, was deleted) while an output stream is still writing to the console (e.g. alogging
handler which will flush the output stream when closing the application) - This concerns all console-related widgets:
DockableConsole
,Console
,InternalShell
,PythonShellWidget
andShellBaseWidget
- Fixed
- Code editor: fixed compatibility issue with PySide6
(
AttributeError: 'QFont' object has no attribute 'Bold'
)
🛠️ 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
), functionlocale.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 the
GetUserDefaultLocaleName
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
🛠️ 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
🛠️ 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)
🛠️ Bug fixes:
- 'Apply' button state is now correctly updated when modifying one of the following items:
dataset.MultipleChoiceItem
dataset.dataitems.DictItem
dataset.dataitems.FloatArrayItem
- Fixed minor deprecation and other issues related to locale
💥 Changes:
- Removed
--unattended
command line option forpytest
:- Before:
pytest --unattended guidata
(to run tests without Qt event loop) - Now:
pytest guidata
(there is no use case for running tests with Qt event loop, so the--unattended
option was removed and the unattended mode is now the default)
- Before:
- Removed CHM documentation (obsolete format)
⚠ Exceptionally, this release contains the following API breaking changes:
- Moved
utils.update_dataset
todataset.conv.update_dataset
- Moved
utils.restore_dataset
todataset.conv.restore_dataset
✔ API simplification (backward compatible):
- Dataset items may now be imported from
guidata.dataset
instead ofguidata.dataset.dataitems
- Dataset types may now be imported from
guidata.dataset
instead ofguidata.dataset.datatypes
- Examples:
-
from guidata.dataset.dataitems import FloatItem
becomesfrom guidata.dataset import FloatItem
-
from guidata.dataset.datatypes import DataSet
becomesfrom guidata.dataset import DataSet
-
Or you may now write:
import guidata.dataset as gds class MyParameters(gds.DataSet): """My parameters""" freq = gds.FloatItem("Frequency", default=1.0, min=0.0, nonzero=True) amp = gds.FloatItem("Amplitude", default=1.0, min=0.0)
-
💥 New features:
- New
dataset.create_dataset_from_dict
: create a dataset from a dictionary, using keys and values to create the dataset items - New
dataset.create_dataset_from_func
: create a dataset from a function signature, using type annotations and default values to create the dataset items dataset.dataitems.StringItem
:- Added argument
password
to hide text (useful for passwords) - Added argument
regexp
to validate text using a regular expression
- Added argument
dataset.dataitems.FileSaveItem
,dataset.dataitems.FileOpenItem
,dataset.dataitems.FilesOpenItem
anddataset.dataitems.DirectoryItem
: added argumentregexp
to validate file/dir name using a regular expressiondataset.dataitems.DictItem
: added support for HDF5 and JSON serializationdataset.io.h5fmt
anddataset.io.jsonfmt
: added support for lists and dictionnaries serialization
♻ New PlotPyStack internal features:
widgets.about
: handle about dialog box informations (Python, Qt, Qt bindings, ...)- Renamed development environment variable
GUIDATA_PYTHONEXE
toPPSTACK_PYTHONEXE
🧹 Bug fixes:
- Fixed Qt6 compatibility issue with
QFontDatabase
Bug fixes:
widgets.console.interpreter
: replaced threading.Thread.isAlive (deprecated since Python 3.8)
Other changes:
DataSet.edit
,DataSet.view
andDataSetGroup.edit
: added missing argumentssize
andwordwrap
- Documentation: added check-list before submitting a patch (see
contribute.rst
file) - Fixed some typing annotations and docstrings, as well as Pylint false positives
- Removed unused functions from
guidata.utils.encoding
module:transcode
getfilesystemencoding
- Added missing docstrings and typing annotations in modules:
guidata.dataset.qtitemwidgets
guidata.dataset.qtwidgets
guidata.utils.encoding
guidata.utils.misc
Bug fixes:
- Issue #65 - QVariant import erroneously used in typing annotations
Other changes:
tests.test_callbacks
: added an example of a callback function for dynamically changing the list of choices of aChoiceItem
object
Bug fixes:
-
Issue #63 - [3.0.2] there is no more guidata-test script
-
Issue #62 - [3.0.2] sphinx doc hang when building on the Debian infra
Other changes:
- Issue #64 - Add guidata-tests.desktop file to repository
Fixed project description:
-
This could be seen as a detail, but as this description text is used by PyPI, it is important to have a correct description.
-
Of course, nobody reads the description text, so it was not noticed since the first release of guidata v3.0.
Bug fixes:
-
Pull Request #61 - Make the build reproducible, by @lamby
-
Issue #59 - [3.0.1] the doc is missing
-
Issue #60 - [3.0.1] pyproject.toml/setuptools: automatic package discovery does not work on debian
API changes (fixes inconsistencies in API):
- Moved
guidata.dataset.iniio.WriterMixin
toguidata.dataset.io.WriterMixin
- Moved
guidata.dataset.iniio.BaseIOHandler
toguidata.dataset.io.BaseIOHandler
- Moved
guidata.dataset.iniio
toguidata.dataset.io.inifmt
and renamed:UserConfigIOHandler
toINIHandler
UserConfigWriter
toINIWriter
UserConfigReader
toINIReader
- Moved
guidata.dataset.jsonio
toguidata.dataset.io.jsonfmt
- Moved
guidata.dataset.hdf5io
toguidata.dataset.io.h5fmt
Bug fixes:
-
Issue #57 - [Errno 2] No such file or directory: 'doc/dev/v2_to_v3.csv'
-
Issue #58 - Test suite: missing dependencies (pandas, Pillow)
-
Modules
guidata.dataset.datatypes
andguidata.dataset.dataitems
should not critically depend on Qt (only modules specific to GUI should depend on Qt, such asguidata.dataset.qtwidgets
). This was a regression introduced in version 3.0.0. A new unit test was added to prevent this kind of regression in the future. -
Fixed documentation generation
.readthedocs.yaml
file (Qt 5.15 was not installed on ReadTheDocs servers, causing documentation build to fail)
Other changes:
-
Pull Request #55 - DateItem and DateTimeItem: added 'format' parameter for formatting, by @robochat
-
Packaging: still using
setuptools
, switched fromsetup.cfg
topyproject.toml
for configuration (see PEP 517)
New major release:
- New BSD 3-Clause License
- Black code formatting on all Python files
- New automated test suite:
- Added module
guidata.env
to handle execution environment - Added support for an "unattended" execution mode (Qt loop is bypassed)
- Added support for pytest fixtures
- Added support for coverage testing: 70% coverage to date
- Added module
- Documentation was entirely rewritten using Sphinx
- Reorganized modules:
- Moved
guidata.hd5io
toguidata.dataset.hdf5io
- Moved
guidata.jsonio
toguidata.dataset.jsonio
- Renamed
guidata.userconfigio
toguidata.dataset.iniio
- New package
guidata.utils
for utility functions:- Removed deprecated or unused functions in old
guidata.utils
module - Moved old
guidata.utils
module toguidata.utils.misc
, except the functionsupdate_dataset
andrestore_dataset
which are still inguidata.utils
(root module) - Moved
guidata.encoding
toguidata.utils.encoding
- Moved
guidata.gettext_helpers
toguidata.utils.gettext_helpers
- Removed deprecated or unused functions in old
- Splitted
guidata.qtwidgets
in two modules:guidata.widgets.dockable
for dockable widgetsguidata.widgets.rotatedlabel
for rotated label
- Moved
- Other changes:
guidata.guitest
:- Added support for subpackages
- New comment directive (
# guitest: show
) to add test module to test suite or to show test module in test launcher (this replaces the oldSHOW = True
line)
guidata.dataset.datatypes.DataSet
: newcreate
class method for concise dataset creation, allowing to create a dataset with a single line of code by passing default item values as keyword arguments
Bug fixes:
- Fixed critical compatibility issue with Python 3.11 (
codeset
argument was removed fromgettext.translation
function) - Fixed support for
DateTimeItem
andDateItem
objects serializing (HDF5 and JSON) - Fixed JSONReader constructor documentation: more explicit docstring
- Fixed test_dataframeeditor.py test script (issue with QApplication creation)
Changes:
- Added JSON serialize/deserialize support for
DataSet
objects (from CodraFT project, https://codra-ingenierie-informatique.github.io/CodraFT/) - Array editor: switching to read-only mode when array is not writeable
- Object editor (
oedit
function): cleaner implementation, handling widget parenting (code specifically related to Spyder internal shell was removed)
Bug fixes:
- Array editor: fixed error when NumPy array flag "writeable" is False, do not try to change flag value since it's a deprecated feature since NumPy v1.17
- Do not install Qt translator and set color mode (dark/light) on Qt application if it already has been initialized (QApplication instance is not None)
Bug fixes:
- Collection editor: fixed "Save array" feature
- Console widget context menu: added missing icons
Changes:
- FloatArrayItem: added data type information on associated widget
- guitest.TestModule.run: added timeout argument to wait for process termination
Bug fixes:
- FloatArrayItem: avoid RuntimeWarning when dealing with complex data
- external/darkdetect: fixed compatibility issue with Windows Server 2008 R2
Bug fixes:
- win32_fix_title_bar_background: not working in 32bits
Changes:
- Dark mode may be overriden by QT_COLOR_MODE environment variable
Bug fixes:
- Fixed missing import for DictItem callback
Changes:
- Code editor: added support for other languages than Python (C++, XML, ...)
Bug fixes:
- Fixed Qt5 translation standard support
- Fixed code editor/console widgets dark mode default settings
Bug fixes:
- Fixed PySide6 compatibility issues
- Fixed remaining Python 3 compatibility issues
Bug fixes:
- Fixed Python 3 compatibility issues
Changes:
- Removed support for Python 2.7 and PyQt4 (guidata supports Python >=3.6 and PyQt5, PySide2, PyQt6, PySide6 through QtPy 2)
- Added support for dark theme mode on Windows (including windows title bar background), MacOS and GNU/Linux.
- Added embbeded Qt-based Python console widget
- Dataset edit layout: now disabling/enabling "Apply" button depending on widget value changes
- Code editor: widget minimum size area may now be set using rows and columns size
- Test launcher: redesigned, added support for dark mode
Changes:
- Added generic widgets: array, dictionary, text and code editors.
- Removed
spyderlib
/spyder
dependency. - Added setter method on DataItem object for "help" text (fixed part of the tooltip).
Changes:
- Added PySide2 support: guidata is now compatible with Python 2.7, Python 3.4+, PyQt4, PyQt5 and PySide2!
Changes:
- Added PyQt4/PyQt5/PySide automatic switch depending on installed libraries
- Moved documentation to https://docs.readthedocs.io/
Bug fixes:
- Fixed Spyder v4.0 compatibility issues.
Bug fixes:
- Fixed Spyder v3.0 compatibility issues.
Bug fixes:
FilesOpenItem.check_value
: if value is None, return False (avoids "None Type object is not iterable" error)
Bug fixes:
- Fixed compatibility issue with Python 3.5.1rc1 (Issue #32: RecursionError in
userconfig.UserConfig.get
) HDF5Reader.read_object_list
: fixed division by zero (when count was 1)hdf5io
: fixed Python3 compatibility issue with unicode_hdf type converter
Features:
- Added CHM documentation to wheel package
- hdf5io: added support for a progress bar callback in "read_object_list" (this allows implementing a progress dialog widget showing the progress when reading an object list in an HDF5 file)
Bug fixes:
- Python 3 compatibility: fixed
hdf5io.HDF5Writer.write_object_list
method - data items:
- StringItem: when
notempty
parameter was set to True, item value was not checked at startup (expected orange background)
- StringItem: when
- disthelpers:
- Supporting recent versions of SciPy, h5py and IPython
- Fixed compatibility issue (workaround) with IPython on Python 2.7 (that is the "collection.sys cx_Freeze error")
Bug fixes:
- Fixed compatibility issues with old versions of Spyder (<v2.3)
Bug fixes:
- Fixed Issue #25: ConfigParser.get unexpected keyword argument 'raw'
- Fixed tests failures: disthelpers, guiqwt/tests/loadsaveitems_hdf5.py
Features:
- userconfigio: added support for serializing/deserializing NumPy scalars
- Fixed Issue #47: added support for DateTimeItem/DateItem (de)serialization
Setup:
- Using setuptools "entry_points" instead of distutils "scripts"
Possible API compatibility issues:
- Added support for PyQt5 (removed old-style signals)
Possible API compatibility issues:
- disthelpers:
- Changed arguments from "architecture=None, python_version=None" to "msvc_version, architecture=None"
Added support for Python 3 (see module guidata.py3compat
).
New features:
- disthelpers:
- Added support for Python 3.3
- Added support for pygments (and partial support for zmq: still failing)
- FloatArrayItem: added support for
unit
property value
Bug fixes:
- disthelpers.prepend_module_to_path: unload modules which were already imported to be able to replace them by other versions (mostly
guidata
should be concerned by this if the function is used -as it should be- in package's init.py script)
New features:
- HDF5 serialization (HDF5 reader/writer):
- Added context manager
- Added convenience methods
read
andwrite
- Added convenience methods
write_object_list
andread_object_list
to save/restore objects implementing DataSet-likeserialize
anddeserialize
methods
- Datasets I/O (HDF5/ini): None values (unset items) can now be saved/loaded for FloatItem, IntItem and BoolItem objects
- disthelpers: added option 'exclude_dirs' to 'add_module_data_files' and 'add_module_data_dir' methods
- Added slider support for FloatItem objects (contributor: julien.jaeck)
- (Issue 21) Added option 'size' in dataset
edit
andview
methods to resize the generated dialog box (size may be a tuple of integers (width, height) or a QSize object)
Possible API compatibility issues:
- guidata now requires Python 2.6 (Python 2.5 support has been dropped)
Bug fixes:
- DataSet objects (de)serialization: fixed HDF5 reader/writer for FilesOpenItem and FloatArrayItem serialize/deserialize methods
- Fixed DataSet userconfig read/write test
- StringItem/ColorItem: fixed unicode/str issues in deserialization methods
- Added support for strings encoded in file system charset to avoid an error like "String %r is not UTF-8 encoded" when trying to set an item to a string value (path) obtained with a file system command
- configtools/image paths: handling file system encoded paths
- (Issue 14) Restored compatiblity with PyQt v4.4
Bug fixes:
- Fixed 'callback' property related issue: when updating a DataSetShowGroupBox or DataSetEditGroupBox internal dataset, the callback property was causing a reset of the data items to their default values
Possible API compatibility issues:
- datatypes.OperatorProperty was renamed to FuncProp
Other changes:
- Added test for the FuncProp item property: how to change an item active state depending on another item's value
- Added support for dictionaries for
update_dataset
andrestore_dataset
(functions ofguidata.utils
):update_dataset
may update the destination dataset from a source dictionaryrestore_dataset
may update the destination dictionary from a source dataset
- FloatArrayItem: added option "large" to show all the array values in read-only mode
- Added new guidata svg logo
- disthelpers:
- added support for PySide
- disthelpers: new function 'get_visual_studio_dlls' -- returns the list of Visual Studio DLLs (and create manifest) associated to Python architecture and version
- added support for PySide
Bug fixes:
- disthelpers:
- the vs2008 option was accidently turned off by default on Windows platforms
- build_chm.bat: added support for Windows x64
Other changes:
- dataset.qtwidgets:
- QLabel widgets word wrapping is now disabled for read-only items and may be disabled for dataset comments: this is necessary because when the parent widget height is constrained, Qt is unexpectedly reducing the height of word-wrapped QLabel widgets below their minimum size, hence truncating their contents...
- disthelpers:
- raising an exception when the right version of Ms Visual C++ DLLs was not found
- now creating the manifest and distributing from the redistribuable package installed in WinSxS
Bug fixes:
- ColorItem for recent versions of Qt: in QLineEdit widget, the text representation of color was str(QColor(...)) instead of str(QColor(...).name())
- guidata.qt compat package: fixed _modname typo
- hdf5io:
- optional attribute mechanism generalized to both Attr and DSet objects (for both saving and loading data)
- H5Store/
close
method: now checking if h5 file has already been closed before trying to close it (see http://code.google.com/p/h5py/issues/detail?id=220)
- disthelpers:
- vs2008 option was ignored
- added 'C:\Program Files (x86)' to bin includes (cx_Freeze)
- Data items/callbacks: fixed callbacks for ChoiceItem (or derived items) which were triggered when other widgets were triggering their own callbacks...
Other changes:
- Added test for item callbacks
- dataset.datatypes.FormatProp/new behavior: added
ignore_error
argument, default to True (ignores string formatting error: ValueError) - disthelpers:
- Distribution.Setup: added
target_dir
option - Distribution.build: added
create_archive
option to create a ZIP archive after building the package - cx_Freeze: added support for multiple executables
- added support for h5py 2.0
- added support for Maplotlib 1.1
- Distribution.Setup: added
- Allow DateTime edit widgets to popup calendar
Possible API compatibility issues:
- disthelpers: removed functions remove_build_dist, add_module_data_files, add_text_data_file, get_default_excludes, get_default_includes, get_default_dll_excludes, create_vs2008_data_files (...) which were replaced by a class named Distribution, see the new disthelpers test for more details (tests/dishelpers.py)
- reorganized utils and configtools modules
Other changes:
- disthelpers: replaced almost all functions by a class named Distribution, and added support for cx_Freeze (module remains compatible with py2exe), see the new disthelpers test for more details (tests/dishelpers.py)
- reorganized utils and configtools modules
Since this version, guidata
is compatible with PyQt4 API #1 and API #2.
Please read carefully the coding guidelines which have been recently added to
the documentation.
Possible API compatibility issues:
- Removed deprecated wrappers around QFileDialog's static methods (use the wrappers provided by
guidata.qt.compat
instead):- getExistingDirectory, getOpenFileName, getOpenFileNames, getSaveFileName
Bug fixes:
- qtwidgets.ShowFloatArrayWidget: fixed string float formatting issue (replaced %f by %g)
- Fixed compatiblity issues with PyQt v4.4 (Contributor: Carlos Pascual)
- Fixed missing 'child_title' attribute error with FileOpenItem, FilesOpenItem, FileSaveItem and DirectoryItem
- (Fixes Issue 8) disthelpers.add_modules was failing when vs2008=False
Other changes:
- added this changelog
- qtwidgets: removed ProgressPopUp dialog (it is now recommended to use QProgressDialog instead, which is pretty much identical)
- Replaced QScintilla by spyderlib (as a dependency for array editor, code editor (test launcher) and dict editor)
- qtwidgets.DockWidgetMixin: added method 'setup_dockwidget' to change dockwidget's features, location and allowed areas after class instantiation
- guidata.utils.utf8_to_unicode: translated error message in english
- Add support for 'int' in hdf5 save function
- guidata.dataset/Numeric items (FloatItem, IntItem): added option 'unit' (automatically add suffix ' (unit)' to label in edit mode and suffix ' unit' to value in read-only mode)
- Improved dataset str method: code refactoring with read-only dataset widgets (DataItem: added methods 'format_string' and 'get_string_value', DataSet: added method 'to_string')
- Added coding guidelines to the documentation
- guidata.dataset.qtwidget: added specific widget (ShowBooleanWidget) for read-only display of bool items (text is striked out when value is False)
- guidata.hdf5io.Dset: added missing keyword argument 'optional' (same effect as parent class Attr)
- guidata.dataset.dataitems.IntItem objects: added support for sliders (fixes Issue 9) with option slider=True (see documentation)
Bug fixes:
- setup.py: added svg icons to data files
- gettext helpers were not working on Linux (Windows install pygettext was hardcoded)
Other changes:
- hdf5io: printing error messages in sys.stderr + added more infos when failing to load attribute
Bug fixes:
- setup.py: added svg icons to data files
- gettext helpers were not working on Linux (Windows install pygettext was hardcoded)
- DataSet/bugfix: comment/title options now override the DataSet class doc attribute
- Added missing option 'basedir' for FilesOpenItem
- DirectoryItem: fixed missing child_title attribute bug
- For all DataSet GUI representation, the comment text is now word-wrapped
- Bugfix: recent versions of PyQt don't like the QApplication reference to be stored in modules (why is that?)
- Bugfix/tests: always keep a reference to the QApplication instance
Other changes:
- setup.py: added source archive download url
- Tests: now creating real temporary files and cleaning up at exit
- qtAllow a callback on LineEditWidget to notify about text changes (use set_prop("display", "callback", callback))
- qthelpers: provide wrapper for qt.getOpen/SaveFileName to work around win32 bug
- qtwidgets: optionally hide apply button in DataSetEditGroupBox
- added module guidata.qtwidgets (moved some generic widgets from guidata.qthelpers and from other external packages)
- qthelpers: added helper 'create_groupbox' (QGroupBox object creation)
- Array editor: updated code from Spyder's array editor (original code)
- Added package guidata.editors: contains editor widgets derived from Spyder editor widgets (array editor, dictionary editor, text editor)
- Array editor: added option to set row/col labels (resp. ylabels and xlabels)
- ButtonItem: changed callback arguments toinstance (DataSet object), value (item value), parent (button's parent widget)
- editors.DictEditor.DictEditor: moved options from constructor to 'setup' method (like ArrayEditor's setup_and_check), added parent widget to constructor options
- Added DictItem type: simple button to edit a dictionary
- editors.DictEditor.DictEditor/bugfixes: added action "Insert" to context menu for an empty dictionary + fixed inline unicode editing (was showing the error message "Unable to assign data to item")
- guidata.qtwidgets: added 'DockableWidgetMixin' to fabricate any dockable QWidget class
- gettext helpers: added support for individual module translation (until now, only whole packages were supported)
- DataSetShowGroupBox/DataSetEditGroupBox: **kwargs may now be passed to the DataSet constructor
- disthelpers: added 'scipy.io' to supported modules (includes)
- Added new "value_callback" display property: this function is called when QLineEdit text has changed (item value is passed)
- Added option to pass a text formatting function in DataSetShowWidget