Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
#897 properties refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Lefévère-Laoide authored and Fred Lefévère-Laoide committed Oct 9, 2023
1 parent 49f3ec0 commit c5a7a7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/taipy/gui/_renderers/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ def __init__(
prop_dict = _getscopeattr(self.__gui, prop_hash)
if isinstance(prop_dict, (dict, _MapDict)):
# Iterate through prop_dict and append to self.attributes
var_name, _ = gui._get_real_var_name(prop_hash)
for k, v in prop_dict.items():
(val, key_hash) = _Builder.__parse_attribute_value(gui, v)
self.__attributes[k] = f"{{{prop_hash}['{k}']}}" if key_hash is None else v
self.__attributes[k] = f"{{None if {var_name} is None else {var_name}.get('{k}')}}" if key_hash is None else v
else:
_warn(f"{self.__control_type}.properties ({prop_hash}) must be a dict.")

Expand Down

0 comments on commit c5a7a7d

Please sign in to comment.