Closed P403n1x87 closed 6 years ago
Nevermind, I think I have found the answer in the README (!) and in one of the tests. It seems that support is incomplete. I leave it to you to confirm and close as appropriate, if that is OK.
Yeah, this project isn't maintained any more.
For your problem, it might work if you install the cairocffi package.
If you tested pgi because it can be installed through pip, the latest pygobject can be installed with pip as well: https://pypi.org/project/PyGObject/
Yes, I gave pgi a try because it was available on PyPI and PyGObject was only available from the distro repositories. I didn't realise that it is on PyPI now. Thanks for the feedback!
I have some code that used to work with the gi installed from the Ubuntu repository. I was trying to run the same code with pgi from PyPI, but I get the following error
The code in question comes from the callback registered with the
draw
signal. I have a subclass ofGtk.Window
that on__init__()
doesself.connect("draw", self._on_draw)
. The registered callback has the following codebut the
Context
instancecr
doesn't seem to have any of the methods one would expect from thepycairo
package.