Re: [Tutor] How to Capture a key being pressed?

2012-01-05 Thread Steven D'Aprano
brandon w wrote: How do I capture a key like the bar or the key? http://code.activestate.com/recipes/577977-get-single-keypress/ -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.o

Re: [Tutor] Still the Python Challenge - Conclusion

2012-01-05 Thread Joaquim Santos
Hi Robert! Thanks for the heads up on the Style Guide. I'll read out the links you pointed out to me. About the script, result and Python Challenge, I apologize, however... in previous emails bigger pointers were given speaking about using 'maketrans' to solve the challenge. My way was a work ar

Re: [Tutor] Still the Python Challenge - Conclusion

2012-01-05 Thread Robert Sjoblom
On 5 January 2012 19:41, Joaquim Santos wrote: > Hi List! [...] > This is my script (I know that I only verify a small range but it > works for what I want for now...) > > import string > > def decrypt(cypheredText, shiftedCypherNumber): >    ''' > This function will take two arguments. The first

[Tutor] Still the Python Challenge - Conclusion

2012-01-05 Thread Joaquim Santos
Hi List! I just want to say thank you to all that helped me out! I've now seen the errors I was doing and how to correct them. Now it works as it should. I'll be sure to come back with more questions! And one day help out someone else! This is my script (I know that I only verify a small range bu

Re: [Tutor] Return to my python26.dll & python.dll problems on bootup

2012-01-05 Thread Steven D'Aprano
Wayne Watson wrote: I have two problems upon bootup of my Win7 PC, 64-bit. Wayne, I sympathize with your problems, but they are Windows problems, not Python problems, and have absolutely nothing to do with learning to program Python. You are spamming this mailing list with off-topic questio

[Tutor] Return to my python26.dll & python.dll problems on bootup

2012-01-05 Thread Wayne Watson
I have two problems upon bootup of my Win7 PC, 64-bit. 1.  This may or may not be related to #2, which is the more important of the two, I think. C:\Program Files9x86)\Uniblue\DriverScanner\Python26.dll not installed. What is Uniblue you ask? I installed a new versio

Re: [Tutor] Using Python for a client interactive map application

2012-01-05 Thread Alexander
On Thu, Jan 5, 2012 at 12:16 PM, Alan Gauld wrote: > On 05/01/12 15:58, Alexander wrote: > > framework, does anybody have any other suggestions? For example there is >> a server with all the info about a map, and from a browser a user will >> be able to view and interact with the map at high spee

Re: [Tutor] Using Python for a client interactive map application

2012-01-05 Thread Alan Gauld
On 05/01/12 15:58, Alexander wrote: framework, does anybody have any other suggestions? For example there is a server with all the info about a map, and from a browser a user will be able to view and interact with the map at high speeds. High speeds? On a web application? That usually means Ja

Re: [Tutor] question about gzip module

2012-01-05 Thread Walter Prins
Hi, On 5 January 2012 15:45, daedae11 wrote: > Is there anyone who can give me an example of how to use the gzip module? > I have read the document, but there is no example in the document. Which document are you referring to? The Official Python documentation does in fact contain examples als

Re: [Tutor] question about gzip module

2012-01-05 Thread lzantal
Good morning, I learned it (and many other modules) from pymotw. Here is a direct link to the gzip week. http://www.doughellmann.com/PyMOTW/gzip/index.html#module-gzip lzantal On Jan 5, 2012, at 7:45 AM, daedae11 wrote: > Is there anyone who can give me an example of how to use the gzip modul

[Tutor] question about gzip module

2012-01-05 Thread daedae11
Is there anyone who can give me an example of how to use the gzip module? I have read the document, but there is no example in the document. Thank you!! daedae11___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: htt

Re: [Tutor] Using Python for a client interactive map application

2012-01-05 Thread Hugo Arts
On Thu, Jan 5, 2012 at 5:04 PM, James Reynolds wrote: > > > On Thu, Jan 5, 2012 at 10:58 AM, Alexander wrote: >> >> Dear friends, >> I'm emailing regarding a general question about working with Python and a >> web-browser based interactive map application. Over the summer I had asked a >> similar

Re: [Tutor] Game lag

2012-01-05 Thread Nate Lastname
Thanks for the profilers - never had hear of 'em. Also, no, I cannot strip out unnecessary parts, 'cuz I don't know what part is slowing it down. Thanks a lot, though Hugo. On Thu, Jan 5, 2012 at 11:02 AM, Hugo Arts wrote: > On Thu, Jan 5, 2012 at 3:56 PM, Nate Lastname wrote: > > Hello all, >

Re: [Tutor] Using Python for a client interactive map application

2012-01-05 Thread James Reynolds
On Thu, Jan 5, 2012 at 10:58 AM, Alexander wrote: > Dear friends, > I'm emailing regarding a general question about working with Python and a > web-browser based interactive map application. Over the summer I had asked > a similar question and heard some things about the Django framework, does >

Re: [Tutor] Game lag

2012-01-05 Thread Hugo Arts
On Thu, Jan 5, 2012 at 3:56 PM, Nate Lastname wrote: > Hello all, > > The attached zip file contains a file called 'cameramovement.py'.  As you > can see, this file is extremely laggy.  After searching through my code, I > can't find anything that is slowing it down.  Could someone help me out?  I

[Tutor] Using Python for a client interactive map application

2012-01-05 Thread Alexander
Dear friends, I'm emailing regarding a general question about working with Python and a web-browser based interactive map application. Over the summer I had asked a similar question and heard some things about the Django framework, does anybody have any other suggestions? For example there is a ser

Re: [Tutor] question about a exercise

2012-01-05 Thread Wayne Werner
On Thu, Jan 5, 2012 at 9:22 AM, daedae11 wrote: > ** > The exercise is: > > Write a function which has 3 parameters. First parameter is a char, second > parameter is a integer, third parameter is a integer. > The function would create a file which have following requests: > 1. the length of the f

Re: [Tutor] question about a exercise

2012-01-05 Thread Alexander
On Thu, Jan 5, 2012 at 10:22 AM, daedae11 wrote: > ** > The exercise is: > > Write a function which has 3 parameters. First parameter is a char, second > parameter is a integer, third parameter is a integer. > The function would create a file which have following requests: > 1. the length of the

[Tutor] question about a exercise

2012-01-05 Thread daedae11
The exercise is: Write a function which has 3 parameters. First parameter is a char, second parameter is a integer, third parameter is a integer. The function would create a file which have following requests: 1. the length of the file is in accordance with the third parameter. 2. the content of