[cairo] Lander Game
stevech1097 at yahoo.com.au
Mon Jan 8 17:48:48 PST 2007
On Mon, 2007-01-08 at 23:18 +0000, Alex Mac wrote:
> > GTK+ lander
> > -----------
> > At first I was getting failures trying to import the rsvg module. I
> > then installed gnome-python-desktop from CVS, (my system had 2.14
> > before that---apparently without rsvg). I can get it to run now, but I
> > get the following error message:
> > $ python ./lander-gtk.py
> > self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
> > Traceback (most recent call last):
> > File "/home/alex/python/Lander/GTK/Window.py", line 50, in Animate
> > AttributeError: 'gtk.gdk.Window' object has no attribute 'invalidate_region'
> > The result is a program that displays the rocket and the background,
> > but it's completely static.
> > Any idea on what I might be missing here?
> are you running an old version of Gtk?
> I'm using Gtk 2.10.6 and gnome-python-desktop 2.17.1
gtk.gdk.Window.invalidate_region is new in pygtk 2.10, so lander-gtk.py
should have something like
if gtk.pygtk_version < (2,10,0):
raise Exception ("pygtk 2.10.0 or higher is required")
Send instant messages to your online friends http://au.messenger.yahoo.com
More information about the cairo