Re: [Tutor] more help with vitualenv

2012-04-27 Thread Steven D'Aprano
Ivor Surveyor wrote: As suggested I visited the site virtualenv. However I could not find the files for download and to install on my machine. Could I please ask for further guidance on how to proceed? Which site did you go to? "virtualenv" is not a site, it is a name. Precision of languag

Re: [Tutor] Pygame installation problems

2012-04-27 Thread Steven D'Aprano
Osemeka Osuagwu wrote: Hi, I started learning Python recently, having only very little programming experience. I installed Pygame and tried using How did you install it? What operating system are you using? import pygame to test the installation and got the following error in return; Tr

Re: [Tutor] more help with vitualenv

2012-04-27 Thread Russell Smith
http://pypi.python.org/pypi/virtualenv/1.7.1.2 Read the page at the link above. You will find it. On Friday, April 27, 2012, Ivor Surveyor wrote: > > As suggested I visited the site virtualenv. However I could not find the > files for download and to install on my machine. > Could I please ask

[Tutor] more help with vitualenv

2012-04-27 Thread Ivor Surveyor
As suggested I visited the site virtualenv. However I could not find the files for download and to install on my machine. Could I please ask for further guidance on how to proceed? Ivor Surveyor isurve...@vianet.net.au ___ Tutor maillist - Tuto

Re: [Tutor] Pygame installation problems

2012-04-27 Thread Russell Smith
I would google 'pygame download' and look at the first hit. You are right to add the import but you need to download the files still. On Friday, April 27, 2012, Osemeka Osuagwu wrote: > Hi, > I started learning Python recently, having only very little programming > experience. I installed Pygame

[Tutor] Pygame installation problems

2012-04-27 Thread Osemeka Osuagwu
Hi, I started learning Python recently, having only very little programming experience. I installed Pygame and tried using >import pygame to test the installation and got the following error in return; Traceback (most recent call last): File "", line 1, in ImportError: No module named pygame

Re: [Tutor] tkinter question

2012-04-27 Thread Alan Gauld
On 27/04/12 05:08, Khalid Al-Ghamdi wrote: I've created this simple window with two widgets (a label and a button) the button is supposed to exit the root window, but the problem is it doesn't seem to, top=tkinter.Tk() > ... tkinter.mainloop() try top.mainloop() I'm not sure

Re: [Tutor] Is there a way I can print the output of help(module)?

2012-04-27 Thread Leam Hall
On 04/27/2012 03:11 PM, Joel Goldstick wrote: Hey Steven, thanks. I guess I was a little lazy in my research. I just discovered pydocs before I read your response. Its great! This is great motivation to write concise and complete docstrings. Joel, I am constantly amazed by all the things

Re: [Tutor] Is there a way I can print the output of help(module)?

2012-04-27 Thread Joel Goldstick
On Fri, Apr 27, 2012 at 3:03 PM, Steven D'Aprano wrote: > Joel Goldstick wrote: >> >> Its really nice how python displays help from the docstrings of >> modules.  I'd like to save this info to a file, and I realize I've >> never come across how to do that. > > > At the command prompt (not the Pyth

Re: [Tutor] Is there a way I can print the output of help(module)?

2012-04-27 Thread Steven D'Aprano
Joel Goldstick wrote: Its really nice how python displays help from the docstrings of modules. I'd like to save this info to a file, and I realize I've never come across how to do that. At the command prompt (not the Python interactive interpreter!), run the pydoc command: pydoc math will

[Tutor] Is there a way I can print the output of help(module)?

2012-04-27 Thread Joel Goldstick
Its really nice how python displays help from the docstrings of modules. I'd like to save this info to a file, and I realize I've never come across how to do that. -- Joel Goldstick ___ Tutor maillist - Tutor@python.org To unsubscribe or change sub

Re: [Tutor] PIL and converting an image to and from a string value

2012-04-27 Thread Russell Smith
What did you do? On Friday, April 27, 2012, Chris Hare wrote: > > I got it figured out. > > On Apr 27, 2012, at 12:21 AM, Chris Hare wrote: > > > > > Here is what I am trying to: > > > > the application user chooses an image file. I want to store the image > data in a field in a sqlite database.

Re: [Tutor] PIL and converting an image to and from a string value

2012-04-27 Thread Chris Hare
I got it figured out. On Apr 27, 2012, at 12:21 AM, Chris Hare wrote: > > Here is what I am trying to: > > the application user chooses an image file. I want to store the image data > in a field in a sqlite database. My understanding from the reading I have > done is that I have to conve

Re: [Tutor] running an imported function

2012-04-27 Thread Steven D'Aprano
Cranky Frankie wrote: Is there a way I can import clr.py and then run clr()? The same way you import any other module and then call a function in that module. Don't be fooled by the function having the same name as the module. import clr # import the module clr.clr() # and call the fully-

[Tutor] running an imported function

2012-04-27 Thread Cranky Frankie
This is in 3.2.2. I wanted a function to clear the screen in IDLE. I have this in a clr.py file in a directory in my path: # Function to clear the IDLE screen by printing blank lines def clr(): '''Function to clear the IDLE screen by printing 50 lines.''' for i in range

Re: [Tutor] virtualenv

2012-04-27 Thread Mark Lawrence
On 27/04/2012 07:49, Ivor Surveyor wrote: I recently asked the question how can I get graphic.py to work on my edition of Python which is 2.7.2 The problem was identified by Python tutor from my error messages as: "What that error is telling you is that you have a version 8.5.9 oftcl, but what

Re: [Tutor] passing results between functions

2012-04-27 Thread Gerhardus Geldenhuis
Thank you for all the replies. Having reread my question it is clear that it is not as well constructed as it should be. I will have a bit more of a think with regards to what I want to achieve and then if required rephrase my question. Best Regards On 25 April 2012 19:12, Alan Gauld wrote: >