On Wed, 14 Mar 2001, Skip Montanaro wrote:

> 
> Okay, I'm confused.  On the one hand, James says:
> 
>     James> First of all, there will never be a gtk 1.4 (they decided that
>     James> about a year ago)...
> 
> then later writes:
> 
>     James> I don't think the C API has really changed much since 1.4 (or
>     James> maybe earlier; 1.4 was the first release I started writing
>     James> extensions for).
> 
> Are these two different 1.4's you're referring to?  I'm particularly
> interested in this because I am gearing up to work on a project that will
> use 2.0.

You have taken my response out of context :)  The question was whether
pygtk worked with python 2.1, and I was saying that the C API (of
python) has not changed incompatibly for a long time.

BTW, gtk+ HEAD (what will be gtk+ 2.0) is already very good.  It has
replacement text and tree widgets; both with model/view split.  GTK+ now
also does flicker free drawing and exposure compression by default, so gtk
apps should look as smooth as Tk apps (while gtk+ is in fact faster than
Tk, many people seem to beleive otherwise, because gtk+ 1.2 
flickers).

Then there is pango.  This handles all the internationalised text issues
(multiple scripts, different text directions, etc).  Now all of the GTK+
functions that display text to the screen take UTF-8 character
strings.  By setting the python's default encoding to UTF-8, pygtk allows
you to pass in python unicode strings to these functions, and they will be
handled appropriately.  Pango also has an Xft backend, which allows for
anti aliased text rendering on the X11 target for servers with the RENDER
extension (ie. XFree86 4.0.x).

There are also more targets in 2.0 -- win32 and linux-fb have been
incorporated into the main sourcetree in addition to x11 (there was a
win32 port before, but was never integrated into the main tree).  You can
simply recompile pygtk with another target and it should work.  I am
considering changing the pygtk build process so that you can install pygtk
for more than one target, and "import gtk" decides which to use, allowing
your app to run both on x11 and framebuffer automatically.

James.


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to