List Info

Thread: Python catalog to support python widgets at runtime




Python catalog to support python widgets at runtime
user name
2008-06-04 17:53:40
Hello people.
As you probably know the BINDINGS branch have been inactive
for a long
time.
Coming up with a framework to support multiples languages in
glade and
actually implementing the full gladeui API for such
languages is a big
job.
That said, it does not mean we cant have python widget at
runtime!

The idea is simple, i have ported the old branch code into a
regular
glade plugin.

So all you have to do is add gladepython as your catalog
library
and set the init function to glade_python_init()
glade_python_init() will run a python interpreter and
import your python library
using the catalog name.

btw , the patch is against trunk, but it should work in
stable

enjoy

Juan Pablo

_______________________________________________
Glade-devel maillist  -  Glade-devellists.ximian.com

http://lists.ximian.com/mailman/listinfo/glade-devel

  
  
  
Re: Python catalog to support python widgets at runtime
user name
2008-06-12 02:49:07
Thank you very much for your patch: it is the thing I was
looking for.

A question about adaptors: in the old BINDINGS there was the
ability to
write adaptors in Python. Is it possible with your patch
too? Or do I
have to write adaptors in C (maybe inserting them into the
plugins/python/glade-python.c file)?

Another question, but I don't know if it is correct (note
that I don't
know very well autotools... ). Why are
there some files (e.g.
m4/python.m4) which are in the SVN repository but not in
the
corresponding .tar.gz archive and, on the other hand, are
there some
other files (e.g. gtk-doc.make, m4/gtk-doc.m4) which are in
the tar.gz
archive but not in the repository? This prevents autoreconf
from
successfully running, without some hacks.

Cheers, Alessandro

_______________________________________________
Glade-devel maillist  -  Glade-devellists.ximian.com

http://lists.ximian.com/mailman/listinfo/glade-devel

Re: Python catalog to support python widgets at runtime
user name
2008-06-12 07:09:24

Sent from my iPhone

On Jun 12, 2008, at 9:49, MORGANTINI ALESSANDRO  
<a.morgantiniselca.it> wrote:

> Thank you very much for your patch: it is the thing I
was looking for.
>
> A question about adaptors: in the old BINDINGS there
was the ability  
> to
> write adaptors in Python. Is it possible with your
patch too?

No, you can not and that was the whole point why we took out
Bindings  
from the core.
It is too much work finish the gladeui binding and even more
maintain it

> Or do I
> have to write adaptors in C (maybe inserting them into
the
> plugins/python/glade-python.c file)

I recomend to fix your library if posible.

>
> Another question, but I don't know if it is correct
(note that I don't
> know very well autotools... ). Why are
there some files (e.g.
> m4/python.m4) which are in the SVN repository but not
in the
> corresponding .tar.gz archive and, on

Seems like I missed that in the patch, I will include it
when the  
patch is applied in trunk


> the other hand, are there some
> other files (e.g. gtk-doc.make, m4/gtk-doc.m4) which
are in the tar.gz
> archive but not in the repository? This prevents
autoreconf from
> successfully running, without some hacks.
>
> Cheers, Alessandro
>
> _______________________________________________
> Glade-devel maillist  -  Glade-devellists.ximian.com
> 
http://lists.ximian.com/mailman/listinfo/glade-devel
_______________________________________________
Glade-devel maillist  -  Glade-devellists.ximian.com

http://lists.ximian.com/mailman/listinfo/glade-devel

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )