There isn't much to see at the moment.  I am testing out the modifications
on the extension-class-branch tag for the pygtk directory on CVS.  You can
view the stuff on this branch using bonsai:
  
http://cvs.gnome.org/bonsai/rview.cgi?rev=extension-class-branch&dir=gnome-python/pygtk&cvsroot=/cvs/gnome

Or grab a copy with:
  cvs -z3 get pygtk -r extension-class-branch

Currently, the interesting stuff is in the codegen directory.  There is a
working C header file parser (h2defs.py) that outputs .defs files using
Havoc's new defs file format.  There is also a defs file merger
(merge.py).  It takes a generated defs file, and an older version that
contains some hand modifications (ie. information that can't be deduced
from the headers, such as default values for arguments) and merges the
modifications into the new version.

I am about to start work on the code generator, which shouldn't be too
difficult -- it should be fairly similar to the old one.  When this is
finished, it will hopefully be possible to create new extensions from just
a defs file (mostly autogenerated) and maybe a few hand coded functions
where the code generator couldn't handle.

I think I have sorted out the single wrapper per GtkObject problem.  By
using ExtensionClass, I can do weird things like catching python object
destruction, which should help with this sort of thing.  This should allow
us to have the python wrapper holding a reference to the GtkObject, and if
the wrapper is destroyed before the GtkObject, we can `rescue' the wrapper
for use if the GtkObject comes back into use within python.

This should also allow things like:
  class MyButton(GtkButton):
        # extra methods here ...
And have the exact same instance of MyButton passed to signal handlers,
even though there is no MyButton class in the gtk object system.

Hopefully this will reduce the number of quirks you have to know about
when programming with pygtk or gnome-python.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Sun, 5 Mar 2000, Hassan Aurag wrote:

> 
> 
>  A while back, you talked about using something that autogenerates 
> python bindings. I think Havoc worked on it or something.
> 
>  Do you have more info on this. I'd love to tackle bindings for 
> bonobo!
> 
> 
> >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
> 
> On 3/4/00, 7:53:42 PM, James Henstridge <[EMAIL PROTECTED]> wrote 
> regarding [pygtk] Re: BOUNCE [EMAIL PROTECTED]: Non-member submission 
> from [Hans Breuer <[EMAIL PROTECTED]>] :
> 
> 
> > I am sorry about not applying your patches before.  I have been doing 
> a
> > bit of work to fix some of those problems though.
> 
> > I am currently working on changing pygtk over to use ExtensionClass to
> > simplify things (no more self._o :), and I am moving over to a package
> > structure at the same time, which should get rid of the case 
> insensitivity
> > problems.
> 
> > I have started this work on the branch `extension-class-branch' of the
> > pygtk directory (I haven't branched all of gnome-python because I am
> > currently just trying to get things to work with pygtk at the moment).
> > There isn't much to see now.  Just a script to try to convert C header
> > files to the new .defs file format (based on the script sent to me by
> > Toby Reeves), and a script to merge hand modifications from one .defs 
> file
> > into a newer generated defs file.  There isn't any actual code to play
> > around with yet though.  I will probably be porting the basics over to
> > using ExtensionClass, then do the code generator.
> 
> > James.
> 
> > --
> > Email: [EMAIL PROTECTED]
> > WWW:   http://www.daa.com.au/~james/   http://www.daa.com.au/~james/
> 
> 
> > On Sun, 5 Mar 2000 [EMAIL PROTECTED] wrote:
> 
> > > At 11:51 03.03.00 +0200, Matti Picus wrote:
> > > >I am very interested in getting python and the GIMP working on 
> Windows.
> > > >What must be done to get python scripting up to the level of 
> script-fu? How
> > > >difficult would it be to implement a python console that calls GIMP 
> over a
> > > >socket? Over a pipe? Any ideas how to attack this? Are there enough
> > > >question marks in this e-mail?
> > >
> > > Some time ago I've ported pygimp and pygtk. Take a look at:
> > >
> > > http://hans.breuer.org/ports
> > >
> > > It should work with the current Gimp version, if you follow the
> > > installation instructions included.
> > >
> > >
> > > Hi James,
> > > just in the fact, you have lost my mail from 10.11.99
> > >
> > > Here are some notes about the patch:
> > >
> > > >- Win32 doesn't support filenames different in case only.
> > > >  So I've renamed GTK.py to GTK_const.py
> > > >
> > > >- Currently only _gtk is ported, because it's the only one real
> > > >  needed for Gimp plug-ins
> > > >
> > > >- There are little changes to the Gimp Win32, I'll discuss
> > > >  them with Tor Lillquist soon.
> > >
> > > Now they are integrated in The Gimp since a while ...
> > >
> > > >- My first plug-in is basically running. It writes The Gimp
> > > >  documentation from PDB to nice formatted html files.
> > > > [...]
> > >
> > > See: http://hans.breuer.org/gimp/pdb/
> > >
> > > Regards,
> > >     Hans
> > >
> > >
> 
> > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 
> 
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to