From 121db769873e2cea76228e5618fb1ede0afaf7c8 Mon Sep 17 00:00:00 2001 From: Romain Baville Date: Tue, 6 Jan 2026 10:27:34 +0100 Subject: [PATCH] fix the name of the new attribute to create --- .../PVCreateConstantAttributePerRegion.py | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/geos-pv/src/geos/pv/plugins/generic_processing/PVCreateConstantAttributePerRegion.py b/geos-pv/src/geos/pv/plugins/generic_processing/PVCreateConstantAttributePerRegion.py index ea8487fe4..a809d1279 100644 --- a/geos-pv/src/geos/pv/plugins/generic_processing/PVCreateConstantAttributePerRegion.py +++ b/geos-pv/src/geos/pv/plugins/generic_processing/PVCreateConstantAttributePerRegion.py @@ -155,17 +155,17 @@ def groupRegionAttributeSettingsWidgets( self: Self ) -> None: self.Modified() # Settings of the new attribute: - @smproperty.xml( """ - - - Name of the new attribute to create. - - + @smproperty.stringvector( + name="AttributeName", + label="The name of the new attribute:", + number_of_elements="1", + default_values="newAttribute", + panel_visibility="default", + ) + @smdomain.xml( """ + + Name of the new attribute to create. + """ ) def setAttributeName( self: Self, newAttributeName: str ) -> None: """Set attribute name.