IntProperty

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

DefinitionProperty restricted to be an integer (python int)

Examples

>>> import ipkiss3.all as i3
>>> class MyCell(i3.PCell):
...     prop = i3.IntProperty(default=0.0, doc="an example NumberProperty")
>>> cell = MyCell()
>>> print(cell.prop) # this will fail as the default is not an Integer
>>> cell = MyCell(prop=1) # this is ok
>>> print(cell.prop)
1