Re: [pygtk] Question about Bonobo
A Dom, 2003-08-03 às 11:08, Martin Grimme escreveu: > Hi, > > I want to access the wombat of Evolution in a Python program. > As I can see in the source code of Evolution, you do this > by using the "wombat:" moniker. > When I try to do this in Python, however, I only get > a Bonobo.UnknownPrefix error: > > >>> obj = bonobo.get_object("wombat:", "Bonobo/ConfigDatabase") > Traceback (most recent call last): > File "", line 1, in ? > Bonobo.UnknownPrefix > > > Does anybody know what's going wrong here? > I don't know, but if it doesn't work in python, it probably doesn't work in C either. *Perhaps* the "wombat:" moniker prefix is registered at runtime by the evolution shell, before it is used?... Maybe you should ask this question in the evolution list. > > Martin Grimme > > > ___ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Gustavo João Alves Marques Carneiro <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Question about Bonobo
Hi, I want to access the wombat of Evolution in a Python program. As I can see in the source code of Evolution, you do this by using the "wombat:" moniker. When I try to do this in Python, however, I only get a Bonobo.UnknownPrefix error: >>> obj = bonobo.get_object("wombat:", "Bonobo/ConfigDatabase") Traceback (most recent call last): File "", line 1, in ? Bonobo.UnknownPrefix Does anybody know what's going wrong here? Martin Grimme ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Question about Bonobo
Hello, the bonobo bindings of gnome-python2 work well, so I tried to write a simple component which implements its own interface (similar to the Bonobo/Sample/Echo). As far as I have figured out of C examples, I would have to create a BonoboObject in the factory function called by GenericFactory and return it. My problem is: bonobo.Object claims to be an abstract class so I cannot instantiate it... Is it a bug in the bonobo bindings or is instantiating bonobo.Object just the wrong way for creating a simple BonoboObject (I don't want to create a Control, or similar, just a plain BonoboObject, like in the echo example of libbonobo) ? Can anyone help, please? Bye, Martin Grimme -- http://www.pycage.de ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/