 
       wx.propgrid.StringProperty¶
  wx.propgrid.StringProperty¶Basic property with string value.
Supported special attributes:
wx.TE_PASSWORD on the editor.Note
 Methods Summary¶
 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¶
 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, text, argFlags=0)¶Converts text into Variant value appropriate for this property.
| Parameters: | 
 | 
|---|---|
| Return type: | tuple | 
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: | ( bool, variant ) | 
|---|
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 .