xref: /aoo41x/main/pyuno/demo/swritercompclient.py (revision cdf0e10c)
1# instantiating
2import uno
3
4localContext = uno.getComponentContext()
5resolver = localContext.ServiceManager.createInstanceWithContext(
6				"com.sun.star.bridge.UnoUrlResolver", localContext )
7remoteContext = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
8remoteSmgr = remoteContext.ServiceManager
9
10pyComp = remoteSmgr.createInstanceWithContext( "org.openoffice.demo.SWriter" , remoteContext )
11
12pyComp.run( (), )
13
14