[cairo] pygtk cairo clock example

inkbottle inkbottle at gmail.com
Sun Sep 18 20:24:18 PDT 2005


Steve Chaplin wrote:

>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
>  
>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/cairo/attachments/20050918/2f0018bf/attachment.html


More information about the cairo mailing list