Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: Promoting Python Date: Wed, 06 Apr 2016 20:52:53 +1200 Lines: 40 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Grpzm8JNz9nreMJIg9SBQg14rP6HS9hHw9xpcaZPQj45uapkMU Cancel-Lock: sha1:nIUmGWLTCkuNh47cL/K8JL8/md0= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:106561 Another option for graphical stuff is pygame: http://pygame.org/news.html A rough translation of some of your code: import pygame, sys from pygame import display, draw, event, font, Color, QUIT # Set up the display window screen = display.set_mode((800, 600)) colors = ["red", "orange", "yellow", "green", "blue", "purple"] font.init() f = font.Font(None, 24) y = 10 for name in colors: text = f.render("Color " + name, True, Color(name)) screen.blit(text, (10, y)) y += text.get_height() x = 30 y = 200 for name in colors: c = Color(name) draw.circle(screen, c, (x, y), 20) x += 50 # Refresh the screen display.flip() # Pause until the window is closed while True: for e in event.get(): if e.type == QUIT: sys.exit(0) -- Greg