Re: [Orbit-python-list] bonobo-python, get_object, and wrapping
Status: Inactive
Brought to you by:
tack
|
From: Thomas M. <ma...@ma...> - 2001-09-21 02:54:41
|
On Fri, 2001-09-21 at 12:01, Jason Tackaberry wrote:
> > Now, my approach to this would be writing something like
> >
> > import bonobo
> > shell = bonobo.get_object("OAFIID:GNOME_Evolution_Shell",
> > "IDL:GNOME/Evolution/Shell:1.0")
> >
> > and then start accessing the evolution shell through 'shell'. The
> > problem then is, that bonobo.get_object gives me a CORBA.Object, and not
>
> Don't forget to import Bonobo too (note the upper case B).
hmm...that, in itself, doesn't quite do it form me. Is there something
else I need to import or initialize? The program I'm running right now
is this one:
#!/usr/bin/env python
import bonobo
import Bonobo
shell = bonobo.get_object("OAFIID:GNOME_Evolution_Shell",
"IDL:GNOME/Evolution/Shell:1.0")
print 'shell', shell, dir(shell.__class__)
the output shows that 'shell' is a CORBA.Object, and that none of the
evolution/shell methods are available.
/mailund
--
Eagles may soar, but weasels don't get sucked into jet engines.
|