Re: [pygtk] pygtk extensionclass work

2000-03-26 Thread James Henstridge

Well, most of what is in gtk.py is being moved to a C extension module.
The types you create in an extension module are not class like, so you
can't subclass them for instance.  ExtensionClass is a bit of code that
allows you to create types that can be subclassed.

This way, I can autogenerate the C extension module, and keep the benefits
of having the python class wrappers (ie. you could subclass them and set
their attributes).  We also get all the benefits I mentioned in my
message.

There is documentation on ExtensionClass on Digital Creation's website
(www.digicool.com).

James.

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


On 26 Mar 2000, Hrvoje Niksic wrote:

> This sounds yummy, even if my understanding of the specifics is vague.
> 
> Could you please explain what "extensionclass" is, and how it will
> affect PyGtk?
> -
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

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



Re: [pygtk] pygtk extensionclass work

2000-03-26 Thread Hrvoje Niksic

This sounds yummy, even if my understanding of the specifics is vague.

Could you please explain what "extensionclass" is, and how it will
affect PyGtk?
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] pygtk extensionclass work

2000-03-26 Thread James Henstridge

I just thought I would post a message saying that the extensionclass based
rewrite of pygtk is going pretty well.  In fact, you should even be able
to test it for very simple things.

If you want to do this, here are some instructions:

Checkout the extension-class branch of pygtk.  This can be done with the
following command:
  cvs -z3 get -f -r extensio-class -d pygtk-ec pygtk
(this will check out the extension-class branch of pygtk into the pygtk-ec
directory, and if any files don't have the extension-class tag, use HEAD).

You will still need my python patches for automake installed on your
system (I will switch it over to automake-1.4a soon).

Run the following:
  ./autogen.sh
  make

You can test out the new version from the build directory (I don't
recommend installing it at present).  As it uses libtool to build the
extensions, you will either have to create a few symlinks to get things
working, or use a set of import hooks that understand libtool libraries.
I have written some hooks like that, so that isn't a problem:
  >>> import ltihooks
  >>> ltihooks.install()
  >>> import gtk

Not everything works (in fact there is a lot of unfinished stuff), but you
should be able to subclass the available widgets and the single wrapper
per GtkObject stuff is working.  Also, there is no fiddling round with _o
to worry about.

James.

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


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