wx.propgrid.StringProperty¶Basic property with string value.
Supported special attributes:
wx.TE_PASSWORD on the editor.Note
Methods Summary¶__init__ |
|
DoSetAttribute |
Reimplement this member function to add special handling for attributes of this property. |
OnSetValue |
This is updated so “<composed>” special value can be handled. |
StringToValue |
Converts text into Variant value appropriate for this property. |
ValueToString |
Converts property value into a text representation. |
Class API¶wx.propgrid.StringProperty(PGProperty)¶Possible constructors:
StringProperty(label=PG_LABEL, name=PG_LABEL, value="")
Basic property with string value.
__init__(self, label=PG_LABEL, name=PG_LABEL, value="")¶| Parameters: |
|
|---|
DoSetAttribute(self, name, value)¶Reimplement this member function to add special handling for attributes of this property.
| Parameters: |
|
|---|---|
| Return type: | bool |
| Returns: | Return |
Note
To actually set property attribute values from the application, use wx.propgrid.PGProperty.SetAttribute instead.
OnSetValue(self)¶This is updated so “<composed>” special value can be handled.
StringToValue(self, variant, text, argFlags=0)¶Converts text into Variant value appropriate for this property.
| Parameters: |
|
|---|---|
| Return type: | bool |
You might want to take into account that m_value is Null variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
| Returns: | Returns True if resulting Variant value was different. |
|---|
Note
Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
ValueToString(self, value, argFlags=0)¶Converts property value into a text representation.
| Parameters: |
|
|---|---|
| Return type: |
|
Note
Default implementation calls GenerateComposedValue .