Re: Simple graphic library for beginners

2018-01-12 Thread Michael Torrie
On 01/11/2018 11:48 PM, Jan Erik Moström wrote: > On 10 Jan 2018, at 13:40, Jan Erik Moström wrote: > >> I'm looking for a really easy to use graphic library. The target users >> are teachers who have never programmed before and is taking a first >> (and possible last) programming course. > > T

Re: Simple graphic library for beginners

2018-01-12 Thread Paul Moore
On 12 January 2018 at 17:25, Mikhail V wrote: > And the target Python where the package will be installed should be defined by > a switch, e.g. 'pip -2', 'pip -3' (in analogy with 'py -2', 'py -3'). > The question is though, how pip will know what version(s) of python I have, > and > if I install

Re: Simple graphic library for beginners

2018-01-12 Thread Mikhail V
On Fri, Jan 12, 2018 at 10:38 AM, Paul Moore wrote: > On 12 January 2018 at 06:47, Steven D'Aprano > wrote: >> If pip is joined at the hip to a specific version of Python, I think that >> we ought to be able to specify the version number like we can with Python. >> >> Something like: >> >> pip .

Re: Simple graphic library for beginners

2018-01-12 Thread Lele Gaifax
bartc writes: > If you a beginner, outsider, or infrequent user of Python with no idea of > what the latest version is, except that you already have 3.6 but it might > have a problem, which would you choose? Unless you are also unable to read *and* understand, by any chance you'd follow the very

Re: Simple graphic library for beginners

2018-01-12 Thread bartc
On 12/01/2018 01:56, Chris Angelico wrote: On Fri, Jan 12, 2018 at 12:21 PM, bartc wrote: On 11/01/2018 23:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: I'm almost ready to plonk you, but I think there is still SOME value in your posts. But please, stop denigra

Re: Simple graphic library for beginners

2018-01-12 Thread breamoreboy
On Friday, January 12, 2018 at 6:52:32 AM UTC, Steven D'Aprano wrote: > On Fri, 12 Jan 2018 12:45:04 +1300, Gregory Ewing wrote: > > > Seems to me it would help if pip were to announce which version of > > Python it's installing things into. And instead of just saying "not > > compatible with this

Re: Simple graphic library for beginners

2018-01-12 Thread Chris Angelico
On Fri, Jan 12, 2018 at 9:00 PM, Paul Moore wrote: > On 12 January 2018 at 09:12, Tim Golden wrote: >> I think the shame here is that there is a learning opportunity on both >> sides. As Paul says: by and large, the huge amount of work which the Python >> Packaging team, especially the pip develo

Re: Simple graphic library for beginners

2018-01-12 Thread Paul Moore
On 12 January 2018 at 09:12, Tim Golden wrote: > I think the shame here is that there is a learning opportunity on both > sides. As Paul says: by and large, the huge amount of work which the Python > Packaging team, especially the pip developers, have put in has paid off. > It's now usually possib

Re: Simple graphic library for beginners

2018-01-12 Thread Paul Moore
On 12 January 2018 at 06:47, Steven D'Aprano wrote: > On Fri, 12 Jan 2018 12:45:04 +1300, Gregory Ewing wrote: > >> Seems to me it would help if pip were to announce which version of >> Python it's installing things into. And instead of just saying "not >> compatible with this version of Python",

Re: Simple graphic library for beginners

2018-01-12 Thread Paul Moore
On 12 January 2018 at 06:45, Steven D'Aprano wrote: >> The recommendation was already given to use "python3 -m pip". That gets >> around those problems. > > If you google for installation instructions, they're nearly always given > in terms of "use pip", not "use python3.4 -m pip". > > My point is

Re: Simple graphic library for beginners

2018-01-12 Thread Tim Golden
On 12/01/2018 08:47, Paul Moore wrote: On 12 January 2018 at 01:21, bartc wrote: On 11/01/2018 23:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: I'm almost ready to plonk you, but I think there is still SOME value in your posts. But please, stop denigrating what

Re: Simple graphic library for beginners

2018-01-12 Thread Paul Moore
On 12 January 2018 at 01:21, bartc wrote: > On 11/01/2018 23:23, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: > > >> I'm almost ready to plonk you, but I think there is still SOME value >> in your posts. But please, stop denigrating what you don't understand. > > > A

Re: Simple graphic library for beginners

2018-01-12 Thread Monte Milanuk
On 2018-01-11 12:37, Oivvio Polite wrote: On ons, jan 10, 2018 at 01:40:28 +0100, Jan Erik Moström wrote: I'm looking for a really easy to use graphic library. The target users are teachers who have never programmed before and is taking a first (and possible last) programming course. I do a t

Re: Simple graphic library for beginners

2018-01-12 Thread Chris Angelico
On Fri, Jan 12, 2018 at 5:45 PM, Steven D'Aprano wrote: > On Fri, 12 Jan 2018 12:14:03 +1100, Chris Angelico wrote: >>> How do I deal with permissions errors? [semi-rhetorical question -- I >>> know *an* answer, but I don't know if it is the *right* answer] >> >> That's a fair point, but a perms e

Re: Simple graphic library for beginners

2018-01-12 Thread Christian Gollwitzer
Am 11.01.18 um 06:16 schrieb Michael Torrie: On 01/10/2018 01:13 PM, bartc wrote: I couldn't see anything obviously simple there. A lot seems to do with interaction which is always much more complicated than just drawing stuff. Yes the link didn't have the simple examples I hoped for. How's t

Re: Simple graphic library for beginners

2018-01-11 Thread Steven D'Aprano
On Fri, 12 Jan 2018 12:45:04 +1300, Gregory Ewing wrote: > Seems to me it would help if pip were to announce which version of > Python it's installing things into. And instead of just saying "not > compatible with this version of Python", say "not compatible with Python > X.Y.Z". That would make t

Re: Simple graphic library for beginners

2018-01-11 Thread Jan Erik Moström
On 10 Jan 2018, at 13:40, Jan Erik Moström wrote: I'm looking for a really easy to use graphic library. The target users are teachers who have never programmed before and is taking a first (and possible last) programming course. Thanks for all the suggestions, I'm going to take a look at them

Re: Simple graphic library for beginners

2018-01-11 Thread Steven D'Aprano
On Fri, 12 Jan 2018 12:14:03 +1100, Chris Angelico wrote: > On Fri, Jan 12, 2018 at 11:57 AM, Steven D'Aprano > wrote: [...] >> Recent Pythons include "ensure pip" by default, which is a private >> version of pip which is intended to do nothing but install the latest >> version of pip. > > True,

Re: Simple graphic library for beginners

2018-01-11 Thread Terry Reedy
On 1/11/2018 6:35 PM, Gregory Ewing wrote: bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). I suspect some of your problems might have been caused by 'pip'

Re: Simple graphic library for beginners

2018-01-11 Thread Terry Reedy
On 1/11/2018 3:34 PM, Dietmar Schwertberger wrote: On 1/11/2018 8:51 PM, bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). You can't expect that people prov

Re: Simple graphic library for beginners

2018-01-11 Thread Terry Reedy
On 1/11/2018 2:51 PM, bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). The recommended way to run pip and similar python code is -m pip install xyz where

Re: Simple graphic library for beginners

2018-01-11 Thread Ned Batchelder
On 1/11/18 8:21 PM, bartc wrote: On 11/01/2018 23:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: I'm almost ready to plonk you, but I think there is still SOME value in your posts. But please, stop denigrating what you don't understand. And please try to see thing

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 12:21 PM, bartc wrote: > On 11/01/2018 23:23, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: > > >> I'm almost ready to plonk you, but I think there is still SOME value >> in your posts. But please, stop denigrating what you don't understand. >

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 23:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: I'm almost ready to plonk you, but I think there is still SOME value in your posts. But please, stop denigrating what you don't understand. And please try to see things from the pointer of view of a be

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 11:57 AM, Steven D'Aprano wrote: > On Fri, 12 Jan 2018 05:42:03 +1100, Chris Angelico wrote: > >> On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: > [...] >>> Except my Python 3.6 doesn't have pip. There is a however a copy in my >>> Python 3.4. But that gives me the message:

Re: Simple graphic library for beginners

2018-01-11 Thread Steven D'Aprano
On Fri, 12 Jan 2018 05:42:03 +1100, Chris Angelico wrote: > On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: [...] >> Except my Python 3.6 doesn't have pip. There is a however a copy in my >> Python 3.4. But that gives me the message: > > Why doesn't it? Recent Pythons should include pip by default

Re: Simple graphic library for beginners

2018-01-11 Thread Gregory Ewing
Ned Batchelder wrote: so "pip install pygame" should work. Some people seem so determined to dislike a thing, they cannot be convinced there are solutions to their problems. But it clearly didn't work for bartc at first, and the error messages he got didn't make it at all clear why. You can't

Re: Simple graphic library for beginners

2018-01-11 Thread Gregory Ewing
bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). I suspect some of your problems might have been caused by 'pip' not using the Python you thought it was usin

Re: Simple graphic library for beginners

2018-01-11 Thread MRAB
On 2018-01-11 23:11, bartc wrote: On 11/01/2018 22:32, Chris Angelico wrote: On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: As I understand it, pygame is just another add-on, which doesn't inherently need to use .whl format, and which doesn't inherently need to use 'pip' package installer. I

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: > On 11/01/2018 22:32, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: > > >>> As I understand it, pygame is just another add-on, which doesn't >>> inherently >>> need to use .whl format, and which doesn't inherently need to

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 22:32, Chris Angelico wrote: On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: As I understand it, pygame is just another add-on, which doesn't inherently need to use .whl format, and which doesn't inherently need to use 'pip' package installer. I even saw somewhere that you needed

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: > On 11/01/2018 20:53, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 7:34 AM, bartc wrote: > > >>> It failed on my 3.6, it failed on 3.4, it failed on 3.7 (is what 'pip' >>> does >>> really so leading edge?), and finally worked on a brand-new 3.

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 20:53, Chris Angelico wrote: On Fri, Jan 12, 2018 at 7:34 AM, bartc wrote: It failed on my 3.6, it failed on 3.4, it failed on 3.7 (is what 'pip' does really so leading edge?), and finally worked on a brand-new 3.6. In case you haven't figured it out by now, pygame has differe

Re: Simple graphic library for beginners

2018-01-11 Thread breamoreboy
On Thursday, January 11, 2018 at 8:34:30 PM UTC, bartc wrote: > On 11/01/2018 20:12, Chris Angelico wrote: > > On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: > >> On 11/01/2018 19:41, Paul Moore wrote: > >>> > >>> On 11 January 2018 at 18:33, bartc wrote: > >> > >> > >>> python -m pip instal

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 7:34 AM, bartc wrote: > On 11/01/2018 20:12, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: >>> >>> On 11/01/2018 19:41, Paul Moore wrote: On 11 January 2018 at 18:33, bartc wrote: >>> >>> >>> python -m pip install XXX

Re: Simple graphic library for beginners

2018-01-11 Thread Dietmar Schwertberger
On 1/11/2018 8:51 PM, bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). You can't expect that people provide binary installers for Python versions that are

Re: Simple graphic library for beginners

2018-01-11 Thread Oivvio Polite
On ons, jan 10, 2018 at 01:40:28 +0100, Jan Erik Moström wrote: > I'm looking for a really easy to use graphic library. The target users are > teachers who have never programmed before and is taking a first (and > possible last) programming course. > I do a two day workshop for design and illustr

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 20:12, Chris Angelico wrote: On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: On 11/01/2018 19:41, Paul Moore wrote: On 11 January 2018 at 18:33, bartc wrote: python -m pip install XXX just works, for 99% of things anyone wants. In particular it works for pygame. Conti

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: > On 11/01/2018 19:41, Paul Moore wrote: >> >> On 11 January 2018 at 18:33, bartc wrote: > > >> python -m pip install XXX >> >> just works, for 99% of things anyone wants. In particular it works for >> pygame. >> >> Continuing to complain about a

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 19:41, Paul Moore wrote: On 11 January 2018 at 18:33, bartc wrote: python -m pip install XXX just works, for 99% of things anyone wants. In particular it works for pygame. Continuing to complain about a situation that has been resolved for a year or more I tried that on

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 6:51 AM, bartc wrote: > On 11/01/2018 18:42, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: > > >>> Well, that seemed to do something, and it didn't need me to download any >>> .whl files. But then I noticed a bunch of errors culminating with: >>

Re: Simple graphic library for beginners

2018-01-11 Thread Paul Moore
On 11 January 2018 at 19:51, bartc wrote: > I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, > this time with the 'set environment variables' option (to allow 'pip' to be > typed from anywhere). Stop trolling. Python 3.7 final hasn't been released yet. OF COURSE you will

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 18:42, Chris Angelico wrote: On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: Well, that seemed to do something, and it didn't need me to download any .whl files. But then I noticed a bunch of errors culminating with: "Command python setup.py egg_info failed with error code 1 in C

Re: Simple graphic library for beginners

2018-01-11 Thread Paul Moore
On 11 January 2018 at 18:33, bartc wrote: >> Go. Fetch. Stop fudding. > > And you know this link, how? Because googling for 'download pygame', it > doesn't appear on the first page (or in any of the next half dozen). Using your search phrase, the first results I get are: 1. Downloads - Pygame

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: > On 11/01/2018 15:23, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: > > >>> Although I can't run it because 'pygame' is not available. I think >>> installing this library is likely to be a bigger obstacle than >>> program

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 15:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: Although I can't run it because 'pygame' is not available. I think installing this library is likely to be a bigger obstacle than programming any graphics! (If I try and download it as a ready-built lib

Re: Simple graphic library for beginners

2018-01-11 Thread Ned Batchelder
On 1/11/18 10:23 AM, Chris Angelico wrote: On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: On 11/01/2018 05:16, Michael Torrie wrote: On 01/10/2018 01:13 PM, bartc wrote: Yes the link didn't have the simple examples I hoped for. How's this: - import pygame import

Re: Simple graphic library for beginners

2018-01-11 Thread Michael Torrie
On 01/11/2018 06:38 AM, bartc wrote: > Although I can't run it because 'pygame' is not available. I think > installing this library is likely to be a bigger obstacle than > programming any graphics! > > (If I try and download it as a ready-built library for Windows, it has a > range of .msi fil

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: > On 11/01/2018 05:16, Michael Torrie wrote: >> >> On 01/10/2018 01:13 PM, bartc wrote: > > >> Yes the link didn't have the simple examples I hoped for. How's this: >> - >> import pygame >> import time >> >> pygame.init()

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 05:16, Michael Torrie wrote: On 01/10/2018 01:13 PM, bartc wrote: Yes the link didn't have the simple examples I hoped for. How's this: - import pygame import time pygame.init() screen = pygame.display.set_mode((1024, 768) ) red = (255,0,0) green = (

Re: Simple graphic library for beginners

2018-01-10 Thread Michael Torrie
On 01/10/2018 01:13 PM, bartc wrote: > I couldn't see anything obviously simple there. A lot seems to do with > interaction which is always much more complicated than just drawing stuff. Yes the link didn't have the simple examples I hoped for. How's this: - import py

Simple graphic library for beginners

2018-01-10 Thread Mikhail V
> > But the OP isn't looking for a full-blown GUI toolkit. I went back and > > re-read his post to be sure I wasn't misunderstanding. Therefore I > > don't think the suggestion to use wxPython or PyQt is that helpful. > > > > Do you have any other suggestions? > > > > Even Cairo is pretty complic

Re: Simple graphic library for beginners

2018-01-10 Thread bartc
On 10/01/2018 17:36, Michael Torrie wrote: On 01/10/2018 10:22 AM, Igor Korot wrote: Hi, wxPython/Phoenix. It can do everything you need and more But the OP isn't looking for a full-blown GUI toolkit. I went back and re-read his post to be sure I wasn't misunderstanding. Therefore I do

Re: Simple graphic library for beginners

2018-01-10 Thread Igor Korot
Hi, Michael, On Wed, Jan 10, 2018 at 11:36 AM, Michael Torrie wrote: > On 01/10/2018 10:22 AM, Igor Korot wrote: >> Hi, >> wxPython/Phoenix. >> It can do everything you need and more > > But the OP isn't looking for a full-blown GUI toolkit. I went back and > re-read his post to be sure I

Re: Simple graphic library for beginners

2018-01-10 Thread Arthur Endlein Correia
Yes, considering the OP request, pygame would be better, or one of Mark's suggestions: mcsp.wartburg.edu/zelle/python/graphics.py Seems really easy to use. --- Arthur Endlein Correia arthur.corr...@usp.br endart...@gmail.com 55 11 968 606 174 IGc, USP On Wed, Jan 10, 2018 at 3:36 PM, Michae

Re: Simple graphic library for beginners

2018-01-10 Thread Michael Torrie
On 01/10/2018 10:22 AM, Igor Korot wrote: > Hi, > wxPython/Phoenix. > It can do everything you need and more But the OP isn't looking for a full-blown GUI toolkit. I went back and re-read his post to be sure I wasn't misunderstanding. Therefore I don't think the suggestion to use wxPython o

Re: Simple graphic library for beginners

2018-01-10 Thread Igor Korot
Hi, wxPython/Phoenix. It can do everything you need and more And it will look exactly as any other application on the system... Thank you. On Wed, Jan 10, 2018 at 11:04 AM, Michael Torrie wrote: > On 01/10/2018 09:16 AM, oliver wrote: >> Pyqt without hesitation. > > Except that people ar

Re: Simple graphic library for beginners

2018-01-10 Thread Michael Torrie
On 01/10/2018 09:16 AM, oliver wrote: > Pyqt without hesitation. Except that people are forgetting the OP is not asking about a GUI library. The subject line reads "Simple graphic[s] library for beginners." He just wants a simple graphics drawing library for beginners. Create a canvas of a certa

Re: Simple graphic library for beginners

2018-01-10 Thread oliver
Pyqt without hesitation. - I've used it in full-fledged desktop app (120k LOC) and it's just awesome, so well documented, versatile, and you can learn gradually (starting with their simpler tablewidget then later move to their tableview/model for added flexibility). - Qt is moving s

Re: Simple graphic library for beginners

2018-01-10 Thread bartc
On 10/01/2018 14:55, Antoon Pardon wrote: On 10-01-18 13:40, Jan Erik Moström wrote: I'm looking for a really easy to use graphic library. The target users are teachers who have never programmed before and is taking a first (and possible last) programming course. I would like to have the abilit

Re: Simple graphic library for beginners

2018-01-10 Thread Antoon Pardon
On 10-01-18 13:40, Jan Erik Moström wrote: > I'm looking for a really easy to use graphic library. The target users > are teachers who have never programmed before and is taking a first > (and possible last) programming course. > > I would like to have the ability to draw lines, circles, etc. Nothi

Re: Simple graphic library for beginners

2018-01-10 Thread Arthur Endlein Correia
Tkinter can look nice and not terribly hard to use, as I found out in this tutorial: http://www.tkdocs.com/tutorial/onepage.html Having said that, nowadays I pretty much always use PyQt (or Pyside) together with qtdesigner to build GUI applications. --- Arthur Endlein Correia arthur.corr...

Re: Simple graphic library for beginners

2018-01-10 Thread breamoreboy
On Wednesday, January 10, 2018 at 12:42:07 PM UTC, Jan Erik Moström wrote: > I'm looking for a really easy to use graphic library. The target users > are teachers who have never programmed before and is taking a first (and > possible last) programming course. > > I would like to have the ability

Re: Simple graphic library for beginners

2018-01-10 Thread Thomas Jollans
On 2018-01-10 13:40, Jan Erik Moström wrote: > I'm looking for a really easy to use graphic library. The target users > are teachers who have never programmed before and is taking a first (and > possible last) programming course. > > I would like to have the ability to draw lines, circles, etc. No

Re: Simple graphic library for beginners

2018-01-10 Thread Larry Martell
On Wed, Jan 10, 2018 at 7:42 AM Jan Erik Moström wrote: > I'm looking for a really easy to use graphic library. The target users > are teachers who have never programmed before and is taking a first (and > possible last) programming course. > > I would like to have the ability to draw lines, circ

Simple graphic library for beginners

2018-01-10 Thread Jan Erik Moström
I'm looking for a really easy to use graphic library. The target users are teachers who have never programmed before and is taking a first (and possible last) programming course. I would like to have the ability to draw lines, circles, etc. Nothing fancy, as little window management as possibl