[Tutor] How to examine the following problem

2012-04-18 Thread lina
Hi, I meet a problem, mainly some error waring: CmdException Exception in Tk callback Function: at 0x46fdde8> (type: ) Args: () Traceback (innermost last): File "/usr/lib/python2.7/dist-packages/Pmw/Pmw_1_3/lib/PmwBase.py", line 1747, in __call__ return apply(self.func, args) File

Re: [Tutor] Tutor Digest, Vol 98, Issue 51

2012-04-18 Thread Boris Vladimir Comi
Hi I have the following code that calculates the position and the value of each pixel of the image: def scm(directory): import os; fs = os.listdir(directory); # now fs will be a list of all the files in directory from edu.wisc.ssec.mcidas import AreaFile; for name in fs: print

Re: [Tutor] How to interact with users on IRC using Python

2012-04-18 Thread Lee Harr
> How do I create a small IRC program which can send and receive private > messages from users? I created a multiplayer game that can create a standalone server like a MUD, or communicate over IRC, or both (I think) acting as a gateway between the two. It uses Twisted, which some find arcane, b

Re: [Tutor] Game of python, help please.

2012-04-18 Thread leo degon
I actually just finished it, without the extra cells. I used a combiniation of two functions and a some exception handling to do so. Here is the script. #leoslife.py # John Conways Game of Life. plan='''displays: the text of the game of life for a set number of X x Y for a set of R turns. [-][-

Re: [Tutor] Game of python, help please.

2012-04-18 Thread bob gailer
On 4/17/2012 2:23 PM, leo degon wrote: > Ok so I've done a bit of work on the program and rewrote it. I tried to take everyones advice. I've used more functions, > I've made it so that it is a list of lists each containing an integer instead of another list with a single entry. I'm glad to se