StringProperty
- ipkiss3.all.StringProperty(restriction=None, default=None, doc=None, **kwargs)
DefinitionProperty restricted to be a string (python str), which contains only ASCII characters
Not for unicode strings (see https://docs.python.org/3/howto/unicode.html#unicode-howto.html).
See also
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