Questions tagged [pycairo]

A set of Python bindings for the cairo graphics library.

Pycairo is a set of Python bindings for the cairo graphics library.

Useful links:

252 questions
0
votes
1 answer

pycairo already installed, but check dependencies says it is not

Pycairo is already installed, but check dependacies script says it is not installed. Hrishikeshs-MacBook-Pro:graphite hrishikeshparanjape$ brew install py2cairo Warning: py2cairo-1.10.0 already installed Hrishikeshs-MacBook-Pro:graphite…
hrishikeshp19
  • 8,838
  • 26
  • 78
  • 141
0
votes
1 answer

Installing cairo for python 3.3 on redhat 6

I am trying to install pycairo 1.10 for Python 3.3 on redhat 6. There are no packages in the official repo, and when I try building it myself it says glibc is out of date. I have the latest glibc from the official the repo, and am somewhat hesitant…
cammp
  • 1
0
votes
2 answers

Is it possible to make graphics created in cairo/GTK+ clickable?

I understand that in GTK+ you can create buttons, events, etc., but is there a way to make something you create in cairo (lets say you draw a circle) a button that is clickable? I guess I am confused on the relationship between GTk and cairo.
user2593562
  • 116
  • 7
0
votes
0 answers

Cairo shows just last drawing?

I create a widget that plots data and allows users a selections: https://gobblin.se/u/kellogs/m/bildschirmfoto-vom-2013-11-12-13-23-54/ Sadly, in this screenshot should appear multiple selections (here red), but rendering n of this models doesn't…
MaM
  • 2,043
  • 10
  • 20
0
votes
0 answers

KeyError 'MACOSX_DEPLOYMENT_TARGET' in waf on kubuntu

I'm trying to install pycairo on kubuntu 13.04, and it's giving me an error complaining about MACOSX_DEPLOYMENT_TARGET: (virtualenv-3)naught101@naught101-chronos:/tmp/pycairo-1.10.0$ python waf configure ./options() Setting top to …
naught101
  • 18,687
  • 19
  • 90
  • 138
0
votes
1 answer

How to convert svg to pdf in python 3+?

I am converting svg to pdf using cairosvg, I need to convert svg to pdf using below svg, svg = """
dhana
  • 6,487
  • 4
  • 40
  • 63
0
votes
0 answers

Cannot find Python.h when configuring pycairo 1.10.0

I am trying to setup pycairo in virtualenv but setup fails when searching for Python.h header file (draw)[root@collabdraw pycairo]# python ./waf configure --prefix=/usr ./options() Setting top to : /root/pycairo Setting…
chip
  • 1,779
  • 1
  • 22
  • 34
0
votes
0 answers

Get Cairo output stream content when using PyCairo/CairoSharp/Inkscape

Throughout the Cairo source, there are various statements like: _cairo_output_stream_printf (ctx->stream, "~> %f %f <~", ix, iy); Is it possible to get the output stream contents to print to console or a file when using a Cairo wrapper or something…
AlliterativeAlice
  • 11,841
  • 9
  • 52
  • 69
0
votes
0 answers

How to paint full ImageSurface on DrawingArea?

I'm working on a Python+Gtk+Cairo app. My application needs to do some very complex (and expensive)drawings. For performance reasons, I draw first on an ImageSurface(offscreen), then I would draw the ImageSurface content on my DrawingArea…
IT.
  • 311
  • 1
  • 5
  • 24
-1
votes
1 answer

No transparency support for gray scale image in pycairo

I am trying to draw overlapping transparent circles to a 2d numpy array: img = np.zeros((256, 256), dtype=np.uint8) surface = cairo.ImageSurface.create_for_data( img, cairo.FORMAT_A8, 256, 256 ) ctx = cairo.Context(surface) ctx.arc(128, 128,…
Ahmed Khalf
  • 136
  • 1
  • 9
-2
votes
1 answer

Does anybody knos how to download pycario?

Hi I am middle school student and trying to download something called Pycario, in order to use manim for my math project. However, I am facing some problems. I have downloaded python3.9.0, and downloaded .whl file named…
-2
votes
1 answer

Pycairo erron on pip installation

I tried to install the Manimlib from the Pycharm's available packages, all the others components are installed, MikTex, Sox, and so on. But i have tried to install pycairo from Pycharm's packages and the pip installation, the following situation…
Duca
  • 1
  • 1
1 2 3
16
17