You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,25 @@
2
2
3
3
## Version 3.13.0 ##
4
4
5
-
💥 New features:
5
+
✨ New features:
6
+
7
+
*`guidata.configtools.get_icon`:
8
+
* This function retrieves a QIcon from the specified image file.
9
+
* Now supports Qt standard icons (e.g. "MessageBoxInformation" or "DialogApplyButton").
10
+
11
+
* Added a `readonly` parameter to `StringItem` and `TextItem` in `guidata.dataset.dataitems`:
12
+
* This allows these items to be set as read-only, preventing user edits in the GUI.
13
+
* The `readonly` property is now respected in the corresponding widgets (see `guidata.dataset.qtitemwidgets`).
14
+
* Example usage:
15
+
16
+
```python
17
+
text = gds.TextItem("Text", default="Multi-line text", readonly=True)
18
+
string = gds.StringItem("String", readonly=True)
19
+
```
20
+
21
+
* Note: Any other item type can also be turned into read-only mode by using `set_prop("display", readonly=True)`. This is a generic mechanism, but the main use case isfor`StringItem`and`TextItem` (hence the dedicated input parameter for convenience).
22
+
23
+
* [Issue #94](https://github.com/PlotPyStack/guidata/issues/94) - Make dataset description text selectable
6
24
7
25
* New validation modes for`DataItem` objects:
8
26
* Validation modes allow you to control how `DataItem` values are validated when they are set.
@@ -28,6 +46,12 @@
28
46
* If `allow_none`isset to `False`, `None`is considered an invalid value.
29
47
* The default value for`allow_none`is`False`, exceptfor`FloatArrayItem`, `ColorItem`and`ChoiceItem`and its subclasses, where it isset to `True` by default.
30
48
49
+
* Enhanced default value handling for`DataItem` objects:
50
+
* Default values can now be `None` even when `allow_none=False`isset on the item.
51
+
* This allows developers to use `None`as a sensible default value while still preventing users from setting `None` at runtime.
52
+
* This feature provides better flexibility for data item initialization without compromising runtime validation.
53
+
* The implementation uses a clean internal architecture that separates default value setting from regular value setting, maintaining the standard Python descriptor protocol.
54
+
31
55
* Improved type handling in`IntItem`and`FloatItem`:
32
56
*`IntItem`and`FloatItem` now automatically convert NumPy numeric types (like `np.int32`or`np.float64`) to native Python types (`int`or`float`) during validation
33
57
*`FloatItem` now accepts integer values and silently converts them to float values
0 commit comments