Re: [Tutor] Tkinter, how to retrieve information about an object on canvas

2012-11-17 Thread Axel Wegen
Matheus Soares da Silva writes: > Hello, I would like to be able to get information from a Tkinter > canvas object. (color, width, tags, root points, etc), You can get the information of an object on the canvas by passing its id to certain canvas methods like itemconfigure: >>> c = Canvas() >>> c

[Tutor] Pygame problem with mac

2012-11-17 Thread Ciaran Mooney
Hi, Was hoping u could help me. I can't seem to download a version of pygame that is compatible with python 3.2 on my Mac powerbook with OS tiger. I only seem to he able to get pygame for python 2.7 which i have never used. Thanks Ciaran ___ Tut

[Tutor] Quick question about definitions.

2012-11-17 Thread sillywilly98
I know this code is not fully debugged. I just cant see why 1 definition is wrong. Here is the code: # This program draws a robot. from turtle import * def draw_eyes(): # This function penup() color("purple") goto(-50, 200)

[Tutor] Adding a gifting option too basic shipping page

2012-11-17 Thread Elizabeth Balderston
Hi- I'm attempting to use Python in order to set up a basic shipping order page. After having figured out thee page along with email confirmation, I realized that I had forgotten a gift option that would automatically affect the price if checked. I have no idea how to add this feature to my prog

[Tutor] New to Python - simple question

2012-11-17 Thread Unaiza Ahsan
Hi all, I am following Jan Erik Solem's book "Programming Computer Vision with Python" and I'm just on the first chapter. The book asked us to create a file imtools.py and put down helpful functions there, which we can just call later. There is a function created for histogram equalization of ima

Re: [Tutor] New to Python - simple question

2012-11-17 Thread staticsafe
On 11/16/2012 12:40, Unaiza Ahsan wrote: > Hi all, > > I am following Jan Erik Solem's book "Programming Computer Vision with > Python" and I'm just on the first chapter. The book asked us to create a > file imtools.py and put down helpful functions there, which we can just > call later. > > Ther

Re: [Tutor] Quick question about definitions.

2012-11-17 Thread eryksun
On Fri, Nov 16, 2012 at 12:28 PM, sillywilly98 wrote: > > I know this code is not fully debugged. I just cant see why 1 definition is > wrong. You have several typos (there may be more): draw_eyes: end_fill(() draw_nose: end_fill(()

Re: [Tutor] Quick question about definitions.

2012-11-17 Thread Dave Angel
On 11/16/2012 12:28 PM, sillywilly98 wrote: > I know this code is not fully debugged. I just cant see why 1 definition is > wrong. > Here is the code: > # This program draws a robot. > > from turtle import * > > def draw_eyes(): > # This fu

Re: [Tutor] Adding a gifting option too basic shipping page

2012-11-17 Thread Alan Gauld
On 10/11/12 19:48, Elizabeth Balderston wrote: I'm attempting to use Python in order to set up a basic shipping order page. OK, I'll assume that you mean you are building a web app rather than a desktop? If so which web framework are you using, if any? I realized that I had forgotten a gi

Re: [Tutor] New to Python - simple question

2012-11-17 Thread Alan Gauld
On 16/11/12 17:40, Unaiza Ahsan wrote: There is a function created for histogram equalization of images (called *histeq*), and saved in imtools.py. from PIL import Image from numpy import * im = array(Image.open('Tulips.jpg').convert('L')) im2,cdf = imtools.histeq(im) I get this: Tracebac

Re: [Tutor] Quick question about definitions.

2012-11-17 Thread Steven D'Aprano
On 17/11/12 04:28, sillywilly98 wrote: I know this code is not fully debugged. I just cant see why 1 definition is wrong. Please don't send screen shots if you don't need to. In this case, the screen shot adds nothing, and turns this into a "

Re: [Tutor] New to Python - simple question

2012-11-17 Thread Kal Sze
On 18 November 2012 07:40, Alan Gauld wrote: > On 16/11/12 17:40, Unaiza Ahsan wrote: > >> There is a function created for histogram equalization of images (called >> *histeq*), and saved in imtools.py. > > > > from PIL import Image > from numpy import * > im = array(Image.open('Tulips

[Tutor] sending email via smtplib

2012-11-17 Thread Saad Javed
import smtplib from_addr = "some_a...@hotmail.com" to_addr = "some_a...@gmail.com" smtp_srv = "smtp.live.com" subject = "Test" message = "Test" msg = "To:%s\nFrom:%s\nSubject: %s\n\n%s" % (to_addr, from_addr, subject, message) smtp = smtplib.SMTP(smtp_srv, 587) smtp.set_debuglevel(1) smtp.ehlo(