<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Steve Chaplin wrote:
<blockquote cite="mid1127094551.2421.10.camel@localhost.localdomain"
type="cite">
<pre wrap="">On Sun, 2005-09-18 at 20:23 +0200, Ralph Glass wrote:
</pre>
<blockquote type="cite">
<pre wrap="">A new pygtk cairo example is available:
<a class="moz-txt-link-freetext" href="http://www.ralphglass.homepage.t-online.de/clock/readme.html">http://www.ralphglass.homepage.t-online.de/clock/readme.html</a>
</pre>
</blockquote>
<pre wrap=""><!---->
with pygtk 2.6.2 I get
$ python clock.py
Traceback (most recent call last):
File "clock.py", line 151, in ?
w = PyGtkWidget()
File "clock.py", line 36, in __init__
gtk.Widget.__init__(self)
TypeError: cannot create instance of abstract (non-instantiable) type
`GtkWidget'
with pygtk 2.7.99 it works fine.
Also I believe the call to 'self.window.cairo_create()' requires pygtk
2.7.0. So I think the version check should be updated to something like
if gtk.pygtk_version < (2,7,0):
print "PyGtk 2.7.0 or later required"
raise SystemExit
Steve
</pre>
</blockquote>
<br>
With pygtk 2.7.3, gtk+ 2.8.1, and cairo 1.0, on FC4 I get same results
that Steve reports above for pygtk 2.6.2. So maybe the check should
be for 2.7.99. I'll try pygtk 2.8.0 next.<br>
</body>
</html>