If i have the python xpcom class/component:

###########################
class Example:
     _com_interfaces_ = components.interfaces.IExample
    _reg_clsid_ = "3ab859b5-2256-40a7-a72b-dcebea5343c5"
    _reg_contractid_ = "@spacespa.it/example;1"

    def __init__(self,par1):
        self._par1=par1
###########################

In this situation, how can i call the xpcom-class (whit arguments 'par1')?

An example...?

..
..
par1='ciao'
foo=components.classes['@spacespa.it/example;1'].createInstance(par1)#?
..
..

?
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to