wx.propgrid.PropertyCategory¶
Category (caption) property.
Class Hierarchy¶
Methods Summary¶
Default constructor is only used in special cases. |
|
Returns text representation of property’s value. |
|
Converts property value into a text representation. |
Properties Summary¶
See |
Class API¶
- class wx.propgrid.PropertyCategory(PGProperty)¶
Possible constructors:
PropertyCategory() -> None PropertyCategory(label, name=PG_LABEL) -> None
Category (caption) property.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
Default constructor is only used in special cases.
- Return type:
None
__init__ (self, label, name=PG_LABEL)
- Parameters:
label (string)
name (string)
- Return type:
None
- GetValueAsString(self, flags=PGPropValFormatFlags.Null)¶
Returns text representation of property’s value.
- Parameters:
flags (PGPropValFormatFlags) – If
wx.propgrid.PGPropValFormatFlags.Null(default value), then displayed string is returned. Ifwx.propgrid.PGPropValFormatFlags.FullValueis set, returns complete, storable string value instead of displayable. Ifwx.propgrid.PGPropValFormatFlags.EditableValueis set, returns string value that must be editable in textctrl. Ifwx.propgrid.PGPropValFormatFlags.CompositeFragmentis set, returns text that is appropriate to display as a part of string property’s composite text representation.- Return type:
str
Note
In older versions, this function used to be overridden to convert property’s value into a string representation. This function is now handled by
ValueToString, and overriding this function now will result in run-time assertion failure.
- ValueToString(self, value, flags)¶
Converts property value into a text representation.
- Parameters:
value (PGVariant) – Value to be converted.
flags (PGPropValFormatFlags) – If
wx.propgrid.PGPropValFormatFlags.Null(default value), then displayed string is returned. Ifwx.propgrid.PGPropValFormatFlags.FullValueis set, returns complete, storable string value instead of displayable. Ifwx.propgrid.PGPropValFormatFlags.EditableValueis set, returns string value that must be editable in textctrl. Ifwx.propgrid.PGPropValFormatFlags.CompositeFragmentis set, returns text that is appropriate to display as a part of string property’s composite text representation.
- Return type:
str
Note
Default implementation calls
GenerateComposedValue.
Properties¶
- ValueAsString¶
See
GetValueAsString
