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


Groups > comp.lang.python > #48738

Re: A Beginner's Doubt

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'url:pypi': 0.03; '(python': 0.07; 'canvas': 0.07; 'mouse': 0.07; 'buttons': 0.09; 'canvas.': 0.09; 'pil': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'required,': 0.09; 'python': 0.11; 'jan': 0.12; 'random': 0.14; 'changes': 0.15; '3.3,': 0.16; 'contest.': 0.16; 'drag': 0.16; 'fork': 0.16; 'former,': 0.16; 'frame,': 0.16; 'graphic,': 0.16; 'idle,': 0.16; 'menu.': 0.16; 'once.': 0.16; 'patches': 0.16; 'presume': 0.16; 'pygame,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'saved,': 0.16; "tk's": 0.16; 'topics': 0.16; 'wrote:': 0.18; 'app': 0.19; 'meant': 0.20; 'programming': 0.22; 'separate': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'color,': 0.24; 'replace': 0.24; 'text,': 0.24; 'title,': 0.24; 'decide': 0.24; 'tutorials': 0.26; 'post': 0.26; 'somewhere': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'moved': 0.30; 'said,': 0.30; 'program,': 0.31; 'code': 0.31; 'usually': 0.31; '(maybe': 0.31; 'clicked': 0.31; 'contrast,': 0.31; 'dialog': 0.31; "user's": 0.31; 'allows': 0.31; 'file': 0.32; 'me?': 0.32; 'option': 0.32; 'run': 0.32; 'text': 0.33; 'open': 0.33; 'url:python': 0.33; 'plain': 0.33; 'device': 0.34; 'screen': 0.34; 'could': 0.34; 'problem': 0.35; 'knowledge': 0.35; 'advice': 0.35; 'display': 0.35; 'anywhere': 0.35; 'possible.': 0.35; 'operations': 0.35; 'but': 0.35; 'there': 0.35; 'really': 0.36; 'disk': 0.36; 'idle': 0.36; 'opposed': 0.36; 'done': 0.36; "i'll": 0.36; 'possible': 0.36; 'url:org': 0.36; 'should': 0.36; 'so,': 0.37; 'two': 0.37; 'list': 0.37; 'button': 0.38; 'displays': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'that,': 0.38; 'short': 0.38; 'does': 0.39; 'aspects': 0.39; 'use.': 0.39; 'delete': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'users': 0.40; 'how': 0.40; 'then,': 0.60; 'tell': 0.60; 'color': 0.61; 'full': 0.61; 'mentioned': 0.61; 'new': 0.61; 'browser': 0.61; 'received:173': 0.61; 'first': 0.61; 'back': 0.62; 'save': 0.62; 'complete': 0.62; 'email addr:gmail.com': 0.63; 'information': 0.63; 'name': 0.63; 'kind': 0.63; 'such': 0.63; 'more': 0.64; 'here': 0.66; 'side': 0.67; 'url:0': 0.67; 'close': 0.67; 'prompt': 0.68; 'friendly': 0.72; 'websites': 0.72; 'goal': 0.75; 'click': 0.77; 'lack': 0.78; 'etc,': 0.84; 'how.': 0.84; 'overlap.': 0.84; 'received:fios.verizon.net': 0.84; 'start.': 0.84; 'visually': 0.84; '20th': 0.91; 'opens': 0.91; 'rick': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: A Beginner's Doubt
Date Wed, 19 Jun 2013 13:57:06 -0400
References <8a4fced2-7d6c-455e-a482-b6f95b806ab5@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
In-Reply-To <8a4fced2-7d6c-455e-a482-b6f95b806ab5@googlegroups.com>
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3593.1371664644.3114.python-list@python.org> (permalink)
Lines 79
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371664644 news.xs4all.nl 15992 [2001:888:2000:d::a6]:56117
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48738

Show key headers only | View raw


On 6/19/2013 9:58 AM, augustofec@gmail.com wrote:
> Hello!
> This is my first post in this group and the reason why I came across here is that, despite my complete lack of knowledge in the programming area, I received an order from my teacher to develop a visually interactive program, until 20th July, so we can participate in a kind of contest.
>
> My goal is to learn and program it by myself, as good as the time allows me. That said, what I seek here is advice from people who definitively have more experience than me on topics like: is it possible to develop this kind of program in such a short amount of time? What kinds of aspects of Python should I focus on learning? What tutorials and websites are out there that can help me? What kind of already done packages are out there that I can freely use, so I do not need to create all the aspects of the program froms scratch?
>
> It would be wise to give an abstract of the program. I made an information flux kind of graphic, but I do not know how to post it in here, so I'll use only words:
>
> Full screen window

Do you literally mean a full screen *window*, like a browser maximized, 
with frame and title bar with Minimize, Restore/Maximize, and Close 
buttons? or a full-screen app without the frame, like full-screen games?

Tkinter, Wx, etc, are meant for the former, Pygame, etc, for the latter.

  -> Title and brief introductory text -> 3 Buttons (Credits) 
(Instructions) and (Start)
>
> (Credits) -> Just plain text and a return button
> (Instructions) -> Just plain text and a return button
> (Start) -> Changes the screen so it displays a side-menu and a Canvas.

If you open Idle and click Help / About IDLE, you will see a dialog box 
with title, text, and two groups of 3 buttons that open plain text, 
including Credits, in a separate window with a close (return) button. It 
you decide to use tkinter, this would give you a start. The code is in 
Lib/idlelib/aboutDialog.py. I do not know how to make the 'dialog' be a 
main window instead, nor how to replace a main window with a new set of 
widgets (as opposed to opening a new window), but I presume its 
possible. If so, I am sure Rick could tell us how.

> Side menu -> X number of buttons (maybe 4 or 5)

Is this really required, as opposed to a normal top menu?

> Buttons -> Clicked -> Submenu opens -> List of images
>                                      -> Return button -> Back to side menu
>
> Image in List of images -> When clicked AND hold mouse button -> Make copy

I am not sure what you mean by 'copy'. Make an internal image object 
from the disk file?
>                          -> if: dragged to canvas -> paste the copy in place
>                          -> if: dragged anywhere else -> delete copy and nothing happens

It sounds like the intention is to have multiple images on the canvas at 
once.

> On canvas:
> Image -> On click and drag can be moved

This could be a problem if images overlap.

>        -> Double click -> Opens menu -> Resize, Deform, Rotate, Color, Brigthness, Contrast, Color Curve, Saturation

Image operations are what are usually placed on a size menu or floating 
menu box.

Neil mentioned PIL (Python Image Library) because Tk's image support is 
anemic, and does not have any built-in transformations. Pillow, at
https://pypi.python.org/pypi/Pillow/2.0.0
is a friendly fork that include patches to run on Python 3.3, which I 
would otherwise recommend that you use.


> Then, somewhere in cavas:

This should be a button on the side menu.
>
> Save option -> Prompt for file and user's name
>              -> Prompt if users want printed copy or not -> Print
>              -> After saved, display random slideshow in other monitor, device or screen with the users' creations.



-- 
Terry Jan Reedy

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


Thread

A Beginner's Doubt augustofec@gmail.com - 2013-06-19 06:58 -0700
  Re: A Beginner's Doubt Neil Cerutti <neilc@norwich.edu> - 2013-06-19 14:19 +0000
  Re: A Beginner's Doubt Chris Angelico <rosuav@gmail.com> - 2013-06-20 00:20 +1000
  Re: A Beginner's Doubt Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-19 08:31 -0700
    Re: A Beginner's Doubt Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-19 12:39 -0400
    Re: A Beginner's Doubt Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-19 19:34 +0100
    Re: A Beginner's Doubt Chris Angelico <rosuav@gmail.com> - 2013-06-20 01:40 +1000
  Re: A Beginner's Doubt Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-19 17:53 +0100
    Re: A Beginner's Doubt rusi <rustompmody@gmail.com> - 2013-06-19 10:29 -0700
  Re: A Beginner's Doubt Chris Angelico <rosuav@gmail.com> - 2013-06-20 03:01 +1000
  Re: A Beginner's Doubt Terry Reedy <tjreedy@udel.edu> - 2013-06-19 13:57 -0400
    Re: A Beginner's Doubt Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-19 12:25 -0700
  Re: A Beginner's Doubt augustofec@gmail.com - 2013-06-21 04:31 -0700

csiph-web