Re: [Orbit-python-list] bonobo-python, get_object, and wrapping
Status: Inactive
Brought to you by:
tack
|
From: Johan D. <zil...@ho...> - 2001-09-21 03:01:37
|
fre 2001-09-21 klockan 04.46 skrev Thomas Mailund:
> 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
import GNOME.Evolution
instead of 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
>
--
-------------------------------------------------
- Johan Dahlin Address: -
- zi...@as... Nygatan 17, nb -
- zil...@ho... 523 30 Ulricehamn -
- PHONE: +46 (0)321-17559 SWEDEN -
- IRC: zilch @ irc.gnome.org -
-------------------------------------------------
|