StringProperty

ipkiss3.all.StringProperty(internal_member_name=None, restriction=None, default=None, doc=None, **kwargs)

DefinitionProperty restricted to be a string (python str)

Not for unicode strings.

See also

ipcore.properties.descriptor.DefinitionProperty, string, unicode

Examples

>>> import ipkiss3.all as i3
>>> class MyCell(i3.PCell):
...     prop = i3.StringProperty(default="hello world", doc="an example StringProperty")
>>> cell = MyCell()
>>> print(cell.prop)
hello world
>>> cell.prop = u'str' # assigning an unicode string will fail