Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > newbie - needing direction

Reply
Thread Tools

newbie - needing direction

 
 
bobueland@yahoo.com
Guest
Posts: n/a
 
      12-04-2005
I'm a newbie, just got through van Rossum's tutorial and I would like
to try a small project of my own. Here's the description of my project.

When the program starts a light blue semi-transparent area, size 128 by
102, is placed in the middle of the screen. The user can move this
area with arrow the keys. When the user hits the Enter key, a magnified
picture of the chosen area is shown on the screen (10 times
magnification on a 1280 by 1024 monitor). When the user hits the Enter
key the program exits leaving the screen as it was before the program
started.

Could someone direct me what libraries and modules I should study in
order to accomplish this.

Thanks Bob

 
Reply With Quote
 
 
 
 
bobueland@yahoo.com
Guest
Posts: n/a
 
      12-04-2005
I should maybe mention that I want to this on a win XP computer

Bob

 
Reply With Quote
 
 
 
 
Giovanni Bajo
Guest
Posts: n/a
 
      12-04-2005
wrote:

> I'm a newbie, just got through van Rossum's tutorial and I would like
> to try a small project of my own. Here's the description of my project.
>
> When the program starts a light blue semi-transparent area, size 128 by
> 102, is placed in the middle of the screen. The user can move this
> area with arrow the keys. When the user hits the Enter key, a magnified
> picture of the chosen area is shown on the screen (10 times
> magnification on a 1280 by 1024 monitor). When the user hits the Enter
> key the program exits leaving the screen as it was before the program
> started.
>
> Could someone direct me what libraries and modules I should study in
> order to accomplish this.



I'd try something easier (with less interaction with Windows). Pygame should
provide everything you need for this kind of applications:
http://www.pygame.org/

Then you can use pywin32 (http://sourceforge.net/projects/pywin32) to bind
to the Windows API and accomplish what you need.
--
Giovanni Bajo


 
Reply With Quote
 
bobueland@yahoo.com
Guest
Posts: n/a
 
      12-05-2005
Thanks for the advice,
The reason for the choice of my particular test project is that it is
in the direction that I want to go in so choosing some other won't do.
I've looked briefly at PyGame but this means I have to learn a lot
besides what I want to do.

I thought that maybe my project could be accomplishied using Tkinter
(or possibly wxPython) and PIL. Am I on the wrong track, or should I
invest my time into PyGame even if I don't plan to make games?

Bob

 
Reply With Quote
 
Scott David Daniels
Guest
Posts: n/a
 
      12-05-2005
wrote:
> Thanks for the advice,
> The reason for the choice of my particular test project is that it is
> in the direction that I want to go in so choosing some other won't do.
> I've looked briefly at PyGame but this means I have to learn a lot
> besides what I want to do.
>
> I thought that maybe my project could be accomplishied using Tkinter
> (or possibly wxPython) and PIL. Am I on the wrong track, or should I
> invest my time into PyGame even if I don't plan to make games?
>
> Bob
>

What you do not understand is that your project requires you to read the
screen under your "lens" and track the "position" on the screen. Those
things are all aspects of the OS and display system, not the language.
So, you'll have to figure out a lot about your system while you are
still unsure of the language itself. That is why we are saying this is
too tough a first project. Reduce your problem: make a movable circle
on a canvas. Next put a background picture under the circle of the
canvas. Then try to your magnification trick on the background. Only
after you can do all of that should you try to get onto the desktop.

Don't be so concerned about "having to learn too much" -- that learning
is the whole point of initial projects. You don't know what you need
to know now, so you are not in a position to make a well-informed choice
of what you need to know.

--
-Scott David Daniels

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie needing assistance on object construction, array of an object as function argument... cantide5ga C++ 7 10-23-2007 10:06 PM
html newbie needing help with simple form slinky HTML 2 05-30-2007 10:48 PM
Newbie needing help with a simple ASP.NET <table> problem...! mj.redfox.mj@gmail.com ASP .Net 4 03-02-2007 02:15 PM
XML Newbie needing some serious help.. rh0dium Python 2 05-20-2005 12:20 PM
newbie needing help raecer C++ 3 11-19-2004 03:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57