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


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

Re: Unlimited canvas painting program

Started byalbert@spenarnc.xs4all.nl (Albert van der Horst)
First post2013-11-07 11:30 +0000
Last post2013-11-08 00:04 +1100
Articles 2 — 2 participants

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: 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

#58642 — Re: Unlimited canvas painting program

Fromalbert@spenarnc.xs4all.nl (Albert van der Horst)
Date2013-11-07 11:30 +0000
SubjectRe: Unlimited canvas painting program
Message-ID<527b79e0$0$1700$e4fe514c@dreader35.news.xs4all.nl>
In article <mailman.1477.1382644948.18130.python-list@python.org>,
MRAB  <python-list@python.org> wrote:
>On 24/10/2013 20:32, markotaht@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 is the cursor
>> that draws. If i move the mouse the cursor doesent move, but the
>> canvas moves. So if i move mouse to the left, i get a line that goes
>> to the left. So i probably must invert the canvas movement. If mouse
>> goes left, canvas goes right.
>>
>> And if possible i would like to save my piece of art aswell :D
>>
>I think it'll be confusing because it goes against how every other
>program does it!
>
>In a painting program you can point to other things, such as tools, but
>if the cursor never moves...
>
>It would be simpler, IMHO, if you just moved the canvas and stopped the
>cursor going off the canvas when the user is drawing near the edge, so
>that the user doesn't need to stop drawing in order to expose more of
>the canvas.

A trick that is used in the editor I'm currently using is to do
normal cursor movement, until you are within a certain range from
the border. At that point you move the window over the canvas
in order to keep the cursor in the middle part of the canvas.
This can be done in discrete steps, and is not too disruptive.
Even if you do it continuously, it is more intuitive (but functionally
equivalent to) keeping the cursor in the middle.

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.

Groetjes Albert
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

[toc] | [next] | [standalone]


#58647

FromChris Angelico <rosuav@gmail.com>
Date2013-11-08 00:04 +1100
Message-ID<mailman.2125.1383829456.18130.python-list@python.org>
In reply to#58642
On Thu, Nov 7, 2013 at 10:30 PM, Albert van der Horst
<albert@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, which is
probably the most common household mouse, or the touchpad, probably
the next most common. With a stick mouse (IBM calls it a TrackPoint),
you can carry on to infinity; same with a roller ball. But yes, a lot
of mouse designs aren't built for infinity.

ChrisA

[toc] | [prev] | [standalone]


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


csiph-web