Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.070 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'detect': 0.07; 'suddenly': 0.07; 'part,': 0.09; 'rewrite': 0.09; 'check.': 0.16; 'png': 0.16; 'reload': 0.16; 'subject:screen': 0.16; 'write.': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'later': 0.20; 'feb': 0.22; 'subject:like': 0.24; 'file.': 0.24; 'header:In-Reply-To:1': 0.27; 'received:172.16': 0.29; 'am,': 0.29; 'fast.': 0.31; 'file': 0.32; 'open': 0.33; 'becomes': 0.33; 'screen': 0.34; 'subject:the': 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'in.': 0.36; 'example,': 0.37; 'message- id:@gmail.com': 0.38; 'auto': 0.38; 'window': 0.38; 'to:addr :python-list': 0.38; 'rather': 0.38; 'does': 0.39; 'pdf': 0.39; 'to:addr:python.org': 0.39; 'most': 0.60; 'course': 0.61; 'you.': 0.62; 'header:Message-Id:1': 0.63; 'kind': 0.63; 'such': 0.63; 'forward': 0.65; 'subject:there': 0.68; 'expose': 0.84; 'pardon': 0.84; 'surface': 0.84; 'trick.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=nFmKfUiRWcEZbGYkqBnCFo9d2hjyFAQb/144HXTMK1k=; b=GQaki1+DfpuQUKLGcjXNnt8LHRLL53ukV6L+M69GFY0W31rzyNrHxSO6PTdDkachrc Z6cTE9ue1pqKgzGvWWsR6anZ6IkIcgONOqillvIZNIY2W/FNoxoSA9VWTrW9Js7OSPm1 QAiz07rz3eSR3fKwz3nxzRGfNONqLx30UWgIkEWpxXPw4w/1nGoG9fEeOOi4b0AnC48v YlHobhd2JfAmzPoMnC/piieABXf8HZ74CU7sUPl0X8dpsL2j4maTVMfwehfbnYWESUgP 4AmG9PcXIl+5+TJHEmtrgkLuKyXY9tDtU1wXx3vX0lqiwbJbZfMvIoi61DDwgqBHC0eo dHfQ== X-Received: by 10.66.100.202 with SMTP id fa10mr40042886pab.36.1422986869716; Tue, 03 Feb 2015 10:07:49 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: Is there a cairo like surface for the screen without the window hassle From: Travis Griggs In-Reply-To: <54CF79B8.10904@rece.vub.ac.be> Date: Tue, 3 Feb 2015 10:07:46 -0800 Content-Transfer-Encoding: quoted-printable References: <54CF79B8.10904@rece.vub.ac.be> To: Pyton List X-Mailer: Apple Mail (2.2070.6) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422986873 news.xs4all.nl 2937 [2001:888:2000:d::a6]:53691 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85168 > On Feb 2, 2015, at 5:20 AM, Antoon Pardon = wrote: >=20 > 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. >=20 > 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. >=20 For the most part, you cannot draw directly to the screen with Cairo. = Some OSes kind of allow out, but they won=E2=80=99t 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.