types

class guerilla.types

Bases: object

Guerilla types

Guerilla types are used when creating a Plug

>>> all([t in types.validTypes for t in ['int', 'float', 'bool']])
True
>>> gt = types('enum', desc=('itemA', 'itemB', 'itemC'))    
>>> gt = types('filename')
>>> gt = types('directory', desc={'title': 'pandoraBox'})
>>> gt = types('float', desc={'min':1,'max':2})
>>> gt = types('int', desc={'min':10,'max':20})

See also

createplug()

default

type default value

Returns:type default value
getname()

get type name

Return type:string