Thread: [Orbit-python-list] Hello, hints anyone?
Status: Inactive
Brought to you by:
tack
From: Michele C. <mol...@f2...> - 2001-08-26 17:16:43
|
Hello, I'm just starting to dive into ORBit-Python and the brand new Bonobo-Python and I'd like to thank all the nice guys involved. Can anybody suggest me how to learn the path to develop a Bonobo-Python application? I have already briefly read: - On writing a Bonobo control, by Dirk-Jan C. Binnema - Bonobo, by Miguel de Icaza - all the docs found on orbit-python.sault.org - the samples code but they seems to be mainly focused on Controls, while I want to write a container (I'd especially like to expand the gtkhtml.py example). Back to studying, now... Thanks, Michele -- -- Michele - www.moleskine.f2s.com "How many deaths will it take till he knows that too many people have died?" -- Bob Dylan, "Blowing in the wind" |
From: Michele C. <mol...@f2...> - 2001-08-26 17:27:59
|
Err... my apologies if this is badly OT, hope to not have hurted people... -- -- Michele - www.moleskine.f2s.com "How many deaths will it take till he knows that too many people have died?" -- Bob Dylan, "Blowing in the wind" |
From: Jason T. <ta...@li...> - 2001-08-26 18:04:20
|
> Err... my apologies if this is badly OT, hope to not have hurted people... Feel free to post bonobo-python related questions here until such a time as Johan sets up a bonobo-python-list. :) Cheers, Jason. |
From: Christian R. R. <ki...@as...> - 2001-08-27 15:45:30
|
On Sun, 26 Aug 2001, Jason Tackaberry wrote: > > Err... my apologies if this is badly OT, hope to not have hurted people... > > Feel free to post bonobo-python related questions here until such a time > as Johan sets up a bonobo-python-list. :) Yes, that would be nice, considering the AWFUL amount of traffic this list generates. :) Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 272 3330 | NMFL |
From: Michele C. <mol...@f2...> - 2001-08-27 15:56:59
|
Christian Robottom Reis wrote: >>Feel free to post bonobo-python related questions here until such a >>time as Johan sets up a bonobo-python-list. :) > > Yes, that would be nice, considering the AWFUL amount of traffic this > list generates. :) Yeah, looked at the archives before posting and wondered if this was an announcements-oply list... ;) -- Michele - www.moleskine.f2s.com |
From: Johan D. <zil...@ho...> - 2001-08-26 18:29:16
|
s=F6ndag 2001-08-26 klockan 19.13 skrev Michele Campeotto: > Hello, I'm just starting to dive into ORBit-Python and the brand new > Bonobo-Python and I'd like to thank all the nice guys involved. >=20 > Can anybody suggest me how to learn the path to develop a > Bonobo-Python application? > I have already briefly read: > - On writing a Bonobo control, by Dirk-Jan C. Binnema > - Bonobo, by Miguel de Icaza > - all the docs found on orbit-python.sault.org > - the samples code > but they seems to be mainly focused on Controls, while I want to write a > container (I'd especially like to expand the gtkhtml.py example). >=20 > Back to studying, now... >=20 > Thanks, > Michele >=20 Hi. It's really simple to create your own container with help of=20 BonoboWidget: ---- import bonobo import gtk def idle (): window =3D gtk.GtkWindow () window.connect ('delete_event', gtk.mainquit)=20 uic =3D bonobo.BonoboUIContainer () control =3D bonobo.BonoboWidget("OAFIID:Bonobo_Sample_Calculator", uic) window.add (control) window.show_all () gtk.idle_add (idle) bonobo.main () --- For more information about BonoboWidget, look at. http://developer.gnome.org/doc/API/bonobo/bonobo-bonobo-widget.html This is documentation for C but most things applies to python too. --=20 ------------------------------------------------- - Johan Dahlin Address: - - zi...@as... Nygatan 17, nb - - zil...@ho... 523 30 Ulricehamn - - PHONE: +46 (0)321-17559 SWEDEN - - IRC: zilch @ irc.gnome.org - ------------------------------------------------- |
From: Michele C. <mol...@f2...> - 2001-08-26 19:38:30
Attachments:
gtkhtml.py
|
On 26 Aug 2001 20:27:38 +0200, Johan Dahlin wrote: > It's really simple to create your own container with help of > BonoboWidget: [code snipped] Yeah, this is what I see from the samples. But how I call methods on the BonoboWidget? I have attached what I have done so far (the example HTML is in italian, but I don't think this to be a problem ;). Am I on the right track? Is it right to directly import the interfaces I need or there is some other "automatic" way to do it? How can I import the GNOME.GtkHTML.Editor.Engine interface without manually loading the IDL? Why does the NautilusView example doesn't work? Is the problem in the sample code or in the wrapper? Sorry for putting so many questions on a single message, but I'm really excited about Bonobo-Python! I'd like to have a complete GNOME-Python development environment... Thanks, Michele P.S. How about moving Bonobo-Python development to SourceForge? -- -- Michele - www.moleskine.f2s.com "How many deaths will it take till he knows that too many people have died?" -- Bob Dylan, "Blowing in the wind" |
From: Johan D. <zil...@ho...> - 2001-08-26 19:57:28
|
s_ 2001-08-26 klockan 21.35 skrev Michele Campeotto: > On 26 Aug 2001 20:27:38 +0200, Johan Dahlin wrote: > > It's really simple to create your own container with help of > > BonoboWidget: > [code snipped] > > Yeah, this is what I see from the samples. But how I call methods on > the BonoboWidget? You can use: object_client = control.get_server () object_client.query_interface (...) as you did or do it directly through CORBA: control_corba = control.get_objref () control_corba.queryInterface (...) > I have attached what I have done so far (the example HTML is in > italian, but I don't think this to be a problem ;). > > Am I on the right track? Is it right to directly import the interfaces > I need or there is some other "automatic" way to do it? > How can I import the GNOME.GtkHTML.Editor.Engine interface without > manually loading the IDL? GtkHTML is broken. GtkHTML installs idl-files in /usr/share/gtkhtml when it should install idl files in /usr/share/idl. When GtkHTML install it's files in the correct dir, from GNOME.GtkHTML.Editor import Engine should work just fine. > Why does the NautilusView example doesn't work? Is the problem in the > sample code or in the wrapper? Because newer versions of GtkHTML requires gconf and it's not wrapped in python (yet). But i might fix this by using the GtkHTML component in a container, so i don't need to talk to GtkHTML directly. > > Sorry for putting so many questions on a single message, but I'm > really excited about Bonobo-Python! I'd like to have a complete > GNOME-Python development environment... > > > Thanks, > Michele > > P.S. How about moving Bonobo-Python development to SourceForge? > Na, i like GNOME CVS, but i need to put up a separate mailing list soon :) -- ------------------------------------------------- - Johan Dahlin Address: - - zi...@as... Nygatan 17, nb - - zil...@ho... 523 30 Ulricehamn - - PHONE: +46 (0)321-17559 SWEDEN - - IRC: zilch @ irc.gnome.org - ------------------------------------------------- |