def __init__(self, info, parser_tail=None): Exporter.__init__(self, info, parser_tail) # sections of code self.sections = {} # template: each item in the list is an item into the class_<...> # section. self.sections['template'] = [] # constructor: each item in the list is a parameter to the class_ # constructor, like class_<C>(...) self.sections['constructor'] = [] # inside: everything within the class_<> statement self.sections['inside'] = [] # scope: items outside the class statement but within its scope. # scope* s = new scope(class<>()); # ... # delete s; self.sections['scope'] = [] # declarations: outside the BOOST_PYTHON_MODULE macro self.sections['declaration'] = [] self.sections['include'] = [] # a list of Constructor instances self.constructors = [] self.wrapper_generator = None # a list of code units, generated by nested declarations self.nested_codeunits = []
def __init__(self, info, parser_tail=None): Exporter.__init__(self, info, parser_tail) # sections of code self.sections = {} # template: each item in the list is an item into the class_<...> # section. self.sections["template"] = [] # constructor: each item in the list is a parameter to the class_ # constructor, like class_<C>(...) self.sections["constructor"] = [] # inside: everything within the class_<> statement self.sections["inside"] = [] # scope: items outside the class statement but within its scope. # scope* s = new scope(class<>()); # ... # delete s; self.sections["scope"] = [] # declarations: outside the BOOST_PYTHON_MODULE macro self.sections["declaration"] = [] self.sections["declaration-outside"] = [] self.sections["include"] = [] # a list of Constructor instances self.constructors = [] self.wrapper_generator = None # a list of code units, generated by nested declarations self.nested_codeunits = []
def __init__(self, item): Exporter.__init__(self, item) tr = self.getTargetRect() self.params = Parameter(name='params', type='group', children=[ { 'name': 'width', 'type': 'int', 'value': tr.width(), 'limits': (0, None) }, { 'name': 'height', 'type': 'int', 'value': tr.height(), 'limits': (0, None) }, { 'name': 'antialias', 'type': 'bool', 'value': True }, { 'name': 'background', 'type': 'color', 'value': (0, 0, 0, 255) }, ]) self.params.param('width').sigValueChanged.connect(self.widthChanged) self.params.param('height').sigValueChanged.connect(self.heightChanged)
def __init__(self, item): Exporter.__init__(self, item) tr = self.getTargetRect() self.params = Parameter(name='params', type='group', children=[ {'name': 'width', 'type': 'float', 'value': tr.width(), 'limits': (0, None)}, {'name': 'height', 'type': 'float', 'value': tr.height(), 'limits': (0, None)}, ]) self.params.param('width').sigValueChanged.connect(self.widthChanged) self.params.param('height').sigValueChanged.connect(self.heightChanged)
def __init__(self, item): Exporter.__init__(self, item) tr = self.getTargetRect() self.params = Parameter(name='params', type='group', children=[ {'name': 'width', 'type': 'int', 'value': tr.width(), 'limits': (0, None)}, {'name': 'height', 'type': 'int', 'value': tr.height(), 'limits': (0, None)}, {'name': 'antialias', 'type': 'bool', 'value': True}, {'name': 'background', 'type': 'color', 'value': (0,0,0,255)}, ]) self.params.param('width').sigValueChanged.connect(self.widthChanged) self.params.param('height').sigValueChanged.connect(self.heightChanged)
def __init__(self, item): Exporter.__init__(self, item) self.params = Parameter(name='params', type='group', children=[ { 'name': 'separator', 'type': 'list', 'value': 'comma', 'values': ['comma', 'tab'] }, ])
def __init__(self, info): Exporter.__init__(self, info)
def __init__(self, info, parser_tail=None): Exporter.__init__(self, info, parser_tail)
def __init__(self, info, tail=None): Exporter.__init__(self, info, tail)
def __init__(self, item): Exporter.__init__(self, item)
def __init__(self, item): Exporter.__init__(self, item) self.params = Parameter(name='params', type='group', children=[ {'name': 'separator', 'type': 'list', 'value': 'comma', 'values': ['comma', 'tab']}, ])
def __init__(self): Exporter.__init__(self)