コード例 #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 = []
コード例 #2
0
ファイル: ValueTypeExporter.py プロジェクト: arndtdv/sharppy
 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 = []
コード例 #3
0
ファイル: ImageExporter.py プロジェクト: robertsj/poropy
    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)
コード例 #4
0
ファイル: SVGExporter.py プロジェクト: robertsj/poropy
 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)
コード例 #5
0
ファイル: ImageExporter.py プロジェクト: archphy/poropy
 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)
コード例 #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']
                                 },
                             ])
コード例 #7
0
ファイル: CodeExporter.py プロジェクト: 0xDEC0DE8/mcsema
 def __init__(self, info):
     Exporter.__init__(self, info)
 def __init__(self, info, parser_tail=None):
     Exporter.__init__(self, info, parser_tail)
コード例 #9
0
 def __init__(self, info):
     Exporter.__init__(self, info)
コード例 #10
0
ファイル: HeaderExporter.py プロジェクト: arndtdv/sharppy
 def __init__(self, info, parser_tail=None):
     Exporter.__init__(self, info, parser_tail)
コード例 #11
0
 def __init__(self, info, tail=None):
     Exporter.__init__(self, info, tail)
コード例 #12
0
ファイル: Matplotlib.py プロジェクト: robertsj/poropy
 def __init__(self, item):
     Exporter.__init__(self, item)
コード例 #13
0
ファイル: CSVExporter.py プロジェクト: calanoue/pyqtgraph
 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']},
     ])
コード例 #14
0
ファイル: Matplotlib.py プロジェクト: calanoue/pyqtgraph
 def __init__(self, item):
     Exporter.__init__(self, item)
コード例 #15
0
 def __init__(self):
     Exporter.__init__(self)