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


Groups > comp.lang.python > #57472

Re: Unlimited canvas painting program

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <tim@thechases.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.023
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'canvas': 0.07; 'memory.': 0.07; 'canvas.': 0.09; 'cursor': 0.09; 'subset': 0.09; 'toggle': 0.09; 'cc:addr:python-list': 0.11; 'gui': 0.12; '-tkc': 0.16; 'canvas,': 0.16; 'clipped': 0.16; 'from:name:tim chase': 0.16; 'subject:program': 0.16; 'wrote:': 0.18; 'library': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'use?': 0.31; 'could': 0.34; 'but': 0.35; 'done': 0.36; 'charset :us-ascii': 0.36; 'similar': 0.36; 'should': 0.36; 'how': 0.40; 'easy': 0.60; 'middle': 0.60; 'email addr:gmail.com': 0.63; 'pick': 0.64; 'to:addr:gmail.com': 0.65; 'between': 0.67; 'rendering': 0.68; 'limit': 0.70; 'collection.': 0.84; 'moves': 0.84; 'received:50.22': 0.84; 'subject:Unlimited': 0.91
Date Thu, 24 Oct 2013 16:46:57 -0500
From Tim Chase <tim@thechases.com>
To markotaht@gmail.com
Subject Re: Unlimited canvas painting program
In-Reply-To <5d107d11-0abf-4180-a994-3368f12979c1@googlegroups.com>
References <5d107d11-0abf-4180-a994-3368f12979c1@googlegroups.com>
X-Mailer Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - boston.accountservergroup.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - thechases.com
X-Get-Message-Sender-Via boston.accountservergroup.com: authenticated_id: tim@thechases.com
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1482.1382651119.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1382651119 news.xs4all.nl 16008 [2001:888:2000:d::a6]:34116
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:57472

Show key headers only | View raw


On 2013-10-24 12:16, markotaht@gmail.com wrote:
> How to create a program similar to paint, but the difference would
> be that the cursor would be always in the middle and the canvas
> moves or the camera is always fixed on the cursor as it moves
> around the canvas. And the canvas should be infinite. What would be
> reasonable to use? 

To hold an (effectively) infinite *bitmap* canvas, you'd (effectively)
need an (effectively) infinite amount of memory.  However, it could be
done with an (effectively) infinite *vector* canvas.  That way you
could limit the on-screen rendering to just the clipped subset of the
vector collection.

You'd still want to make it easy to toggle between "draw" and "stop
drawing", but you could make a mouse-click.

To implement, just pick a GUI library tkinter, wx, or whatver.

-tkc

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Unlimited canvas painting program markotaht@gmail.com - 2013-10-24 12:16 -0700
  Re: Unlimited canvas painting program Thomas Murphy <thomasmurphymusic@gmail.com> - 2013-10-24 15:22 -0400
    Re: Unlimited canvas painting program markotaht@gmail.com - 2013-10-24 12:32 -0700
      Re: Unlimited canvas painting program MRAB <python@mrabarnett.plus.com> - 2013-10-24 21:02 +0100
        Re: Unlimited canvas painting program albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-11-07 11:30 +0000
          Re: Unlimited canvas painting program Chris Angelico <rosuav@gmail.com> - 2013-11-08 00:04 +1100
  Re: Unlimited canvas painting program Tim Chase <tim@thechases.com> - 2013-10-24 16:46 -0500
    Re: Unlimited canvas painting program Grant Edwards <invalid@invalid.invalid> - 2013-10-24 21:51 +0000
      Re: Unlimited canvas painting program Tim Chase <python.list@tim.thechases.com> - 2013-10-24 17:04 -0500

csiph-web