Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/o/p/openerp-extra-6.1-HEAD/openerp_dia/import_view_openerp.py   openerp-extra-6.1(Download)
            shape = 'shape - boolean_on'
        if shape:
            oType = dia.get_object_type (shape)
            o, h1, h2 = oType.create(0,0)
            if ('elem_width'  and 'elem_height' ) in o.properties.keys():
 
        if default and type(default) != type(1):
            oType = dia.get_object_type ('Standard - Text')
            o, h1, h2 = oType.create(x+0.25,y+1.25)
            o.properties['text'] = str(default)
def main2(data, flags):
    layer = data.active_layer
    oType = dia.get_object_type ("shape - char") 
    o, h1, h2 = oType.create (1.4,7.95)
    layer.add_object(o)