Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85168 > unrolled thread

Re: Is there a cairo like surface for the screen without the window hassle

Started byTravis Griggs <travisgriggs@gmail.com>
First post2015-02-03 10:07 -0800
Last post2015-02-03 10:07 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Is there a cairo like surface for the screen without the window hassle Travis Griggs <travisgriggs@gmail.com> - 2015-02-03 10:07 -0800

#85168 — Re: Is there a cairo like surface for the screen without the window hassle

FromTravis Griggs <travisgriggs@gmail.com>
Date2015-02-03 10:07 -0800
SubjectRe: Is there a cairo like surface for the screen without the window hassle
Message-ID<mailman.18439.1422986873.18130.python-list@python.org>
> On Feb 2, 2015, at 5:20 AM, Antoon Pardon <antoon.pardon@rece.vub.ac.be> wrote:
> 
> I need to have a program construct a number of designs. Of course I can directly
> use a pfd surface and later use a pdf viewer to check. But that becomes rather
> cumbersome fast. But if I use a cairo-surface for on the screen I suddenly have
> to cope with expose events and all such things I am not really interested in.
> 
> So does someone know of a package that provides a cairo like surface but that
> would take care of the events in a rather straight forward matter, so that my
> program could make it's design in a window on the screen just as if it is
> designing it in a pdf file.
> 

For the most part, you cannot draw directly to the screen with Cairo. Some OSes kind of allow out, but they won’t repaint it for you. Any viewing software that will auto detect file updates and reload would do the trick. For example, I know that preview on OS X will automatically reload a png file that I write. Cairo can generate png output. Just open preview on the file, and then have the program rewrite the same file.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web