pygobject / pgi

[Unmaintained: Use PyGObject instead] GTK+ / GObject Introspection Bindings for PyPy.
GNU Lesser General Public License v2.1
74 stars 16 forks source link

problems with cairo context #1

Closed jarav closed 11 years ago

jarav commented 11 years ago

Hi, Thank you for this.

I am having problems using the cairo context in the 'draw' signal handler of Gtk.DrawingArea.

For example with the function call: cc.set_source_rgb(1, 1, 1),

I get the error: AttributeError: 'Context' object has no attribute 'set_source_rgb'

Similarly with calling the 'paint' function.

lazka commented 11 years ago

Thanks. Needs some hand written cairo bindings it seems.

Don't expect too much to work atm besides the examples.

lazka commented 11 years ago

Kind of fixed now, but needs cffi 0.6, cairocffi and the following has to go in: https://github.com/SimonSapin/cairocffi/pull/7

lazka commented 11 years ago

cffi 0.6 and cairocffi 0.4 are released now.