[pygtk] Re: ANNOUNCE: gnome-python-1.0.53

2000-04-07 Thread James Henstridge

gtkhtml is still not built by default.  You will need to run the configure
script with the --with-gtkhtml argument.  The reason for this is that the
gtkhtml API hasn't been frozen yet, so there is a chance that it will
break again a little bit before gnome-2.0.

James.

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


On Fri, 7 Apr 2000, Hassan Aurag wrote:

> 
> 
>  This is great news, as I have been waiting for gtkhtml to work for a 
> while now.
> 
>  My question is simple. Is the gnome-python.spec up-to-date or is it 
> better to simply build the thing and install it.
> 
> 
>  Original Message <<
> 
> On 4/7/00, 11:44:53 AM, James Henstridge <[EMAIL PROTECTED]> wrote 
> regarding ANNOUNCE: gnome-python-1.0.53:
> 
> 
> > I have just released gnome-python-1.0.53.  Gnome-python is a set of
> > bindings that allow you to write gnome programs in the Python language
> > (see www.python.org for details).  It is available at:
> >   ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-python/
> 
> > Here are the main changes in this release:
> >  - libtool and the CVS version of automake are now used to build
> >gnome-python, rather than automake-1.4 with my python patches.  If 
> you
> >have troubles with the extension modules it builds now, it is a 
> libtool
> >defficiency, and should be fixed there.
> >  - The GtkHTML wrapper should work with the released gtkhtml-0.1.
> >  - some other bug fixes.  See the change log for details.
> 
> > I also released pygtk-0.6.6, which will be available from ftp.gtk.org
> > soon (you don't need pygtk to use gnome-python, as gnome-python 
> includes
> > it).
> 
> > James.
> 
> > --
> > Email: [EMAIL PROTECTED]
> > WWW:   http://www.daa.com.au/~james/   http://www.daa.com.au/~james/
> 
> 
> 
> > --
> > FAQ: Frequently-Asked Questions at 
> http://www.gnome.org/gnomefaq
> >  To unsubscribe: mail [EMAIL PROTECTED] 
> with
> >"unsubscribe" as the Subject.
> 
> 
> 

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



[pygtk] Re: ANNOUNCE: gnome-python-1.0.53

2000-04-07 Thread Hassan Aurag



 This is great news, as I have been waiting for gtkhtml to work for a 
while now.

 My question is simple. Is the gnome-python.spec up-to-date or is it 
better to simply build the thing and install it.


 Original Message <<

On 4/7/00, 11:44:53 AM, James Henstridge <[EMAIL PROTECTED]> wrote 
regarding ANNOUNCE: gnome-python-1.0.53:


> I have just released gnome-python-1.0.53.  Gnome-python is a set of
> bindings that allow you to write gnome programs in the Python language
> (see www.python.org for details).  It is available at:
>   ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-python/

> Here are the main changes in this release:
>  - libtool and the CVS version of automake are now used to build
>gnome-python, rather than automake-1.4 with my python patches.  If 
you
>have troubles with the extension modules it builds now, it is a 
libtool
>defficiency, and should be fixed there.
>  - The GtkHTML wrapper should work with the released gtkhtml-0.1.
>  - some other bug fixes.  See the change log for details.

> I also released pygtk-0.6.6, which will be available from ftp.gtk.org
> soon (you don't need pygtk to use gnome-python, as gnome-python 
includes
> it).

> James.

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



> --
> FAQ: Frequently-Asked Questions at 
http://www.gnome.org/gnomefaq
>  To unsubscribe: mail [EMAIL PROTECTED] 
with
>"unsubscribe" as the Subject.



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



Re: [pygtk] bonobo

2000-04-07 Thread James Henstridge

not yet (I will probably add support when I get a bit further along with
the rewrite).

James.

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


On Fri, 7 Apr 2000, wrobell wrote:

> Any python module for gnome bonobo?
> 
>   wrobell <[EMAIL PROTECTED]>
> -
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

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



Re: [pygtk] CList get_row_data() question

2000-04-07 Thread James Henstridge

On Fri, 7 Apr 2000, lf11 wrote:

> James Henstridge wrote:
> > 
> > clist.get_row_data(row) returns the data you set with
> > clist.set_row_data(row, data).  If you want to get the text in a cell of
> 
> I used clist.append(row, data).  clist.get_row_data(row) returns 'None',
> not the data in row.  Should I use clist.set_row_data(row, data)?

Those two functions are used for storing arbitrary data with a row in the
clist -- not for retrieving the cell values.

> 
> > the clist, use clist.get_text(row, col).
> 
> I'd like to get the whole row, but I'll try that and see if it gets any
> text from the clist.

Then call clist.get_text for each column :)

> 
> -lf

James.

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



Re: [pygtk] CList get_row_data() question

2000-04-07 Thread lf11

James Henstridge wrote:
> 
> clist.get_row_data(row) returns the data you set with
> clist.set_row_data(row, data).  If you want to get the text in a cell of

I used clist.append(row, data).  clist.get_row_data(row) returns 'None',
not the data in row.  Should I use clist.set_row_data(row, data)?

> the clist, use clist.get_text(row, col).

I'd like to get the whole row, but I'll try that and see if it gets any
text from the clist.

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



[pygtk] bonobo

2000-04-07 Thread wrobell

Any python module for gnome bonobo?

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



[pygtk] ANNOUNCE: pygtk-0.6.6 gnome-python-1.0.53

2000-04-07 Thread James Henstridge

I have just released pygtk-0.6.6 and gnome-python-1.0.53.  It is mainly
bug fixes.  The gtkhtml module should work correctly now (it uses
gnome-config to find the libraries to link with).  It also uses the CVS
version of automake (automake-1.4a) rather than my old automake patches,
and also uses libtool.

With this version, it is important that you pass the --prefix=/whatever
argument to configure.  Before it was ignored when installing the
packages, but now it isn't.  Either install under the same prefix as
python, add a .pth file to your python directory or set PYTHONPATH
correctly after installing.

If you have trouble building the shared libraries (eg. not getting the
correct extension, etc), it is probably a libtool defficiency, and should
be followed up with the libtool guys.  The tarballs include the latest
libtool version (1.3.4), so there shouldn't be too many problems.

The new packages are available from the usual locations:
  ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-python/
  ftp://ftp.gtk.org/pub/gtk/python/   (soon)
  ftp://ftp.daa.com.au/pub/james/python/  (try to use one of the others)

James.

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


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



Re: [pygtk] ExtensionClass based pygtk

2000-04-07 Thread James Henstridge

Thanks for this patch.  I have applied it and added support for keyword
arguments to a lot of the functions in the gtk.override file.  I was able
to run the examples/ide/browse.py example almost without modification
(just adding `import ltihooks' to the top, as I was running it from the
build directory, and changing the name of one variable), and it subclasses
GtkObjects and uses keyword arguments.

I think I have sorted out all the bugs related to the wrapper rescue code
in the destructor, but I am not that happy with the code (according to the
change log it is evil :).  It would be nice if python provided a more
general way of doing this sort of thing.

I will put out another snapshot tarball when I have a few more things
working.

BTW, I switched the stable version of pygtk and gnome-python over to using
the cvs automake, so now you can use an (almost) standard version of
automake to build gnome-python from cvs.

James.

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


On Fri, 31 Mar 2000, Toby D. Reeves wrote:

> James,
> 
> The ExtensionClass based pygtk looks great so far.  I've been watching CVS
> as you built it up and have been waiting for you to announce that it is
> ready for folks to look at it.
> 
> I've attached a CVS diff that make the generated code use
> PyArg_ParseTupleAndKeywords instead of PyArg_ParseTuple.  This allows
> keywords to be used  to override default arguments, like in the old pygtk.
> My implemention is kind-of brute force.  It could be changed to only use
> ParseTupleAndKeywords for functions and methods that have been assigned
> default argument values.
> 
> The GtkItemFactory code in both the old and new pygtk has a refcount
> problem.  The attached python code demonstrates the bug.  I have looked at
> the gtk+ code and do not see a simple fix.   Maybe someone else will.
> Basically, gtk_item_factory_create_item()  does not allow a GtkDestroyNotify
> to be specified for the callback_data.
> 
> I look forward to using the added capabilities of the new pygtk in a
> reorg/rewrite of our hyperspectral code.
> 
> I'm glad that you agreed that using ExtensionClass was a good idea.
> 
> Later,
> 
> Toby
> 

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