Example #1
0
 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 = []
Example #2
0
 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 = []
Example #3
0
    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)
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
 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']
                                 },
                             ])
Example #7
0
 def __init__(self, info):
     Exporter.__init__(self, info)
 def __init__(self, info, parser_tail=None):
     Exporter.__init__(self, info, parser_tail)
Example #9
0
 def __init__(self, info):
     Exporter.__init__(self, info)
Example #10
0
 def __init__(self, info, parser_tail=None):
     Exporter.__init__(self, info, parser_tail)
Example #11
0
 def __init__(self, info, tail=None):
     Exporter.__init__(self, info, tail)
Example #12
0
 def __init__(self, item):
     Exporter.__init__(self, item)
Example #13
0
 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']},
     ])
Example #14
0
 def __init__(self, item):
     Exporter.__init__(self, item)
 def __init__(self):
     Exporter.__init__(self)