Re: [Orbit-python-list] Hello, hints anyone?
Status: Inactive
Brought to you by:
tack
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 - ------------------------------------------------- |