mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
travis fix: resolve missing cairo dep
This commit is contained in:
parent
c08cb1fce2
commit
2c3174ae08
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ except BaseException:
|
|||
def MyKCardDeck():
|
||||
return None
|
||||
|
||||
import cairo
|
||||
# import cairo
|
||||
# from gi import require_version
|
||||
# require_version('Rsvg', '2.0')
|
||||
# from gi.repository import Rsvg # noqa: E402
|
||||
|
@ -54,6 +54,7 @@ class SVGManager:
|
|||
width_, height_ = dims.width, dims.height
|
||||
pix = self.svg.get_pixbuf_sub(id__)
|
||||
if False:
|
||||
import cairo
|
||||
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32,
|
||||
int(width_), int(height_))
|
||||
context = cairo.Context(surface)
|
||||
|
|
Loading…
Add table
Reference in a new issue