Re: Unlimited canvas painting program

2013-11-07 Thread Albert van der Horst
In article mailman.1477.1382644948.18130.python-l...@python.org, MRAB python-list@python.org wrote: On 24/10/2013 20:32, markot...@gmail.com wrote: So, i`ll take the canvas, somekind of mouse tracker, for each mouse location il draw a dot or 2X2 square or something. Main thing i have never

Re: Unlimited canvas painting program

2013-11-07 Thread Chris Angelico
On Thu, Nov 7, 2013 at 10:30 PM, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: A problem that remains is that a mouse is not intended for an infinite canvas. At some point you will have to lift it and place it back on the pad. Only if you're talking about the physical grasp mouse,

Unlimited canvas painting program

2013-10-24 Thread markotaht
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? In addition,

Re: Unlimited canvas painting program

2013-10-24 Thread Thomas Murphy
To start with, you'll want some sort of Graphic User Interface, a popular and common (but not the only) one is TkInter, which you can dive into here: https://wiki.python.org/moin/TkInter -- https://mail.python.org/mailman/listinfo/python-list

Re: Unlimited canvas painting program

2013-10-24 Thread markotaht
So, i`ll take the canvas, somekind of mouse tracker, for each mouse location il draw a dot or 2X2 square or something. Main thing i have never understood, is how can i get the backround to move. Lets say ia hve 200X200 window. In the middle of it is the cursor that draws. If i move the mouse

Re: Unlimited canvas painting program

2013-10-24 Thread MRAB
On 24/10/2013 20:32, markot...@gmail.com wrote: So, i`ll take the canvas, somekind of mouse tracker, for each mouse location il draw a dot or 2X2 square or something. Main thing i have never understood, is how can i get the backround to move. Lets say ia hve 200X200 window. In the middle of it

Re: Unlimited canvas painting program

2013-10-24 Thread Tim Chase
On 2013-10-24 12:16, markot...@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.

Re: Unlimited canvas painting program

2013-10-24 Thread Grant Edwards
On 2013-10-24, Tim Chase t...@thechases.com wrote: On 2013-10-24 12:16, markot...@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

Re: Unlimited canvas painting program

2013-10-24 Thread Tim Chase
On 2013-10-24 21:51, Grant Edwards wrote: To hold an (effectively) infinite *bitmap* canvas, you'd (effectively) need an (effectively) infinite amount of memory. Sparse arrays allow it to be sort-of implemented as long as most of the bitmap is empty. Fair enough. Raw bitmap canvas eats