Re: get_transform crashes with pygoocanvas0.14
- From: Brandon Lewis <brandon_lewis berkeley edu>
- To: Bruno Coudoin <bruno coudoin free fr>
- Cc: goocanvas-list gnome org
- Subject: Re: get_transform crashes with pygoocanvas0.14
- Date: Thu, 25 Jun 2009 22:46:30 -0700
I also run ubuntu 9.04 and goocanvas seems to work fine for me, though I am on
64-bit. I tested it with the following script:
import gobject
import goocanvas
import gtk
w = gtk.Window()
c = goocanvas.Canvas()
i = goocanvas.Rect()
i.props.width = 10
i.props.height = 10
i.set_simple_transform(100, 100, 1.0, 0)
w.add(c)
c.get_root_item().add_child(i)
w.show_all()
def get_transform():
print "transform" + repr(i.get_transform())
gobject.timeout_add(1000, get_transform)
gtk.main()
On my system, the resulting output is:
transformcairo.Matrix(1, 0, 0, 1, 100, 100)
Bruno Coudoin wrote:
Hi,
I am just upgrading GCompris to use the latest goocanvas 0.14. This
seems to work fine so far but I have a crash in calling
item.get_transform(). I added a call to an item.get_transform() in a
pygoocanvas's demo and it crashes as well.
I am running on Ubuntu 9.04 with pycairo 1.8.4.
Can someone try to reproduce it to be sure ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]