[pygtk] Builder correct to switch?
sandro at e-den.it
Tue Dec 14 07:01:10 WST 2010
On Wed, Dec 08, 2010 at 02:55:40PM +0100, francesco a promotux.it wrote:
> Il 08/12/2010 00:51, Alessandro Dentella ha scritto:
> >I want to port an application from glade to Builder but I don't understand
> >how to cope with custom widgets. Any ponters to this? I saw a mail from
> >Geral Britton last year but no one answered publicly.
> >thanks in advance
> hi , i wrote some time ago a small how to about.
> this is the link
> italian version:
Thanks a lot, this hint helped me migrate sqlkit to Builder along with
studying you promoGest2 example. But there are quite a few thinks that I find
less than clear:
1. You correctly use env variable GLADE_CATALOG_PATH while docs  speak
about GLADE_ENV_CATALOG_PATH. Why that? Have you followed some other
docs? Should I be able to put the pythonplugin* stuff in a place visible
for the whole system?
2. The name pythonplugin.py and pythonplugin.xml are hardcoded in glade (or
better in it's python plugin)? I don't ned to change I just want to
3.  says:
c) make sure your catalog name is the same as your python import
library since glade_python_init() will use this name to import your
widgets into the interpreter.
I don't understand."Catalog name" is "pythonplugin.xml"?
4. If you don't need glade (the application) as .xml files have been
created already, do you need the plugin or you just need that at
Builder.add_from_file() time the widgets are available to python? That's
5. I'm having problems under gtk 2.14: .add_from_string() needs one more
arg (the length of the xml text), but even in that case Builder
complains about wrong caracter in utf-8 in the last position of the
buffer (corresponding to '>' of </interface>)...
I'm uncertain whether switching now is a good thing, I started becouse I
wanted to get rid of a dependancy but I'm afraid it turns in more problems
due to needed upgrade.
Thanks for any possible explanation
PS: Builder is a much cleaner interface anyhow to add new widgets that it
was glade + custom_handler
Sandro Dentella *:-)
http://www.reteisi.org Soluzioni libere per le scuole
http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy
More information about the pygtk