[cairo] pygtk cairo clock example

Steve Chaplin stevech1097 at yahoo.com.au
Sun Sep 18 18:49:11 PDT 2005


On Sun, 2005-09-18 at 20:23 +0200, Ralph Glass wrote:
> A new pygtk cairo example is available:
> 
> http://www.ralphglass.homepage.t-online.de/clock/readme.html

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


Send instant messages to your online friends http://au.messenger.yahoo.com 


More information about the cairo mailing list