On Wed, Dec 08, 2010 at 02:55:40PM +0100, [email protected] 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
> >sandro
> >*:-)
> >
> >
> >
> hi , i wrote some time ago a small how to about.
> this is the link
> 
> http://forum.promotux.it/viewtopic.php?f=32&t=80
> <http://forum.promotux.it/viewtopic.php?f=32&t=80>
> 
> italian version:
> 
> http://forum.promotux.it/viewtopic.php?f=32&t=79
> <http://forum.promotux.it/viewtopic.php?f=32&t=79>


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 [1] 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
    understand 

 3. [1] 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
    my impression...

 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


sandro
*:-)


[1] http://library.gnome.org/devel/gladeui/stable/pythonsupport.html


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
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to