Re: [Tutor] Newb Learning Question

2008-04-03 Thread Alan Gauld
bob gailer [EMAIL PROTECTED] wrote 3rd alternative: if c 'm': print c Wow! Amazingly I just assumed you couldn't directly compare characters with boolean tests. I don't know why I thought that since it must be possible for string comparisons, but I did. You learn something new every day,

[Tutor] a pyball python app

2008-04-03 Thread dean garrad
hi there.. im not sure if you can help or you would want to but i fort i may aswell give it a try. i am currently trying to edit a python app it is a normal green ball game that comes with python it uses nokia n95 accel to move around. i have been trying to make more than one ball on the

Re: [Tutor] a pyball python app

2008-04-03 Thread Kent Johnson
dean garrad wrote: i am currently trying to edit a python app it is a normal green ball game that comes with python it uses nokia n95 accel to move around. i have been trying to make more than one ball on the screen at the same time . do you think it is possable ? The attachment

Re: [Tutor] a pyball python app

2008-04-03 Thread Kent Johnson
dean garrad wrote: this one is the working version of 1 ball that can move around the screen im sorry the other one i sent was a test one ive been trying out.. i cant seam to find it as easy to get it to work with 2 balls on screen. anything i try doesnt effect the script. What have you

Re: [Tutor] a pyball python app

2008-04-03 Thread Kent Johnson
dean garrad wrote: i kind of understood what you were saying but not sure how to go by this i am still new to python script and learning it as much as i can. OK. Do you understand how the current script works? If not, what parts are confusing? Do you understand object-oriented programming at

Re: [Tutor] a pyball python app

2008-04-03 Thread dean garrad
i kind of understood what you were saying but not sure how to go by this i am still new to python script and learning it as much as i can. here is a video of the script in action http://youtube.com/watch?v=zqZeANFBmis i did not create the script only trying to modify it. i have permission

Re: [Tutor] a pyball python app

2008-04-03 Thread dean garrad
this is the part im lil confused about to add the extra ball location=[img.size[0]/2,img.size[1]/2] speed=[0.,0.] blobsize=16 xs,ys=img.size[0]-blobsize,img.size[1]-blobsize acceleration=0.05 friction = 0.993 import time start_time=time.clock() n_frames=0 i tried copying but it did nothing

Re: [Tutor] a pyball python app

2008-04-03 Thread Kent Johnson
dean garrad wrote: this is the part im lil confused about to add the extra ball location=[img.size[0]/2,img.size[1]/2] speed=[0.,0.] i tried copying but it did nothing do i need to copy it and change something so the python app dont read the same txt twice and jus do nothing? If you

[Tutor] socket / over network

2008-04-03 Thread Nathan McBride
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey guys, I'm pretty tired of the lame backup solution we have at work. Could anyone point me to a (more or less newbieish) example of how to have python open a socket on one box and get data from it, then have another box write to it over the

Re: [Tutor] Newb Learning Question

2008-04-03 Thread Jeffrey Dates
3rd alternative: if c 'm': print c after futzing around with interpreting the problem, I ended up with a solution that utilizes the character comparison. Write a program that prints the first letter of a string that comes after 'm' in the alphabet. s = this is my string for i in s: if i

[Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Jeffrey Dates
Hello, So as I'm starting to get into writing some scripts, I'm looking for recommendations for a nifty script editor. Ideally a freeware/shareware solution until I can justify a purchase of something more beefy. Currently I'm using PSPad, however it's pretty dumb and doesn't recognize Python

Re: [Tutor] socket / over network

2008-04-03 Thread Alan Gauld
Nathan McBride [EMAIL PROTECTED] wrote Hi Nathan, Please don't reply to an existing message to start a new discussion. It messes up those of us using threaded mail/news readers and increases the likelihood that your message will be missed. I'm pretty tired of the lame backup solution we have

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Alan Gauld
Jeffrey Dates [EMAIL PROTECTED] wrote So as I'm starting to get into writing some scripts, I'm looking for recommendations for a nifty script editor. Ideally a freeware/shareware solution until I can justify a purchase of something more beefy. editor choice is a sensitive topic for

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread bob gailer
Jeffrey Dates wrote: Hello, So as I'm starting to get into writing some scripts, I'm looking for recommendations for a nifty script editor. Ideally a freeware/shareware solution until I can justify a purchase of something more beefy. I use Python for Windows and really like it. It is

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Bob Gailer
[snip] I went to the PSPad site, but found no way to download the editor. Am I missing something? Ignore that. Something on the home page did not display correctly. Refresh fixed that. -- Bob Gailer 919-636-4239 Chapel Hill, NC ___ Tutor

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Jeffrey Dates
Ah thanks guy!! Yeah, I guess I didn't mean which is the 'best'... Just some options. Thanks, I'll check out the ones you listed! I'm on Windows btw. Jeffrey Dates www.kungfukoi.com ___ Tutor maillist - Tutor@python.org

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Anthony Baldwin
Andreas Kostyrka wrote: Eric and SPE are also nice. The good thing here is that the majority of IDEs for Python are free. Andreas Am Donnerstag, den 03.04.2008, 16:57 +0100 schrieb Alan Gauld: Jeffrey Dates [EMAIL PROTECTED] wrote So as I'm starting to get into writing some

Re: [Tutor] socket / over network

2008-04-03 Thread linuxian iandsd
re-inventing the wheel ? http://www.howtoforge.com/linux_backuppc On Thu, Apr 3, 2008 at 3:44 PM, Alan Gauld [EMAIL PROTECTED] wrote: Nathan McBride [EMAIL PROTECTED] wrote Hi Nathan, Please don't reply to an existing message to start a new discussion. It messes up those of us

Re: [Tutor] a pyball python app

2008-04-03 Thread dean garrad
hi i signed onto the site it asked me to. :). can i talk to ya now more ? im not sure if i am in wrong place to send e mail to you still i still ahving problems with the ball script this is the script at the moment how it stands with 1 ball working fine and i have been trying to add another

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Scott Nelson
Komodo also often gets props from the IDE People I've known. To throw another one into the mix, ActiveState has a free/open source version of its Komodo IDE called Komodo Edit. I downloaded it and played with it for a few minutes awhile ago. Seems pretty slick. Anyone have any first hand

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Michael Langford
Asking a programmer which editor to use is like asking which religion is best. I use VIM and IPython and shell scripts (I mostly program on windows, but sometimes on Linux as well). There are several options. I'm considering looking into PIDA, which is a IDE you make from tools you already use

Re: [Tutor] a pyball python app

2008-04-03 Thread Kent Johnson
dean garrad wrote: i still ahving problems with the ball script this is the script at the moment how it stands with 1 ball working fine and i have been trying to add another ball to the script. i coppied the txt and added a location2 aswell as location. but it didnt seam to work :S I

Re: [Tutor] Newb Learning Question

2008-04-03 Thread Sander Sweers
Should be replying to the listSorry :( On Thu, Apr 3, 2008 at 11:14 AM, Sander Sweers [EMAIL PROTECTED] wrote: On Thu, Apr 3, 2008 at 8:21 AM, Jeffrey Dates [EMAIL PROTECTED] wrote: 3rd alternative: if c 'm': print c snip Write a program that prints the first letter of a string

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread W W
On Thu, Apr 3, 2008 at 12:15 PM, Michael Langford [EMAIL PROTECTED] wrote: Many people who go this way, program with or without one just fine. Those who start right away always using IDE's can just plain die when they hit an environment where they don't have one (due to time, money, location,

Re: [Tutor] Newb Learning Question

2008-04-03 Thread Jeffrey Dates
Exellent suggestion! thanks! On Thu, Apr 3, 2008 at 2:17 PM, Sander Sweers [EMAIL PROTECTED] wrote: Should be replying to the listSorry :( On Thu, Apr 3, 2008 at 11:14 AM, Sander Sweers [EMAIL PROTECTED] wrote: On Thu, Apr 3, 2008 at 8:21 AM, Jeffrey Dates [EMAIL PROTECTED] wrote:

Re: [Tutor] a pyball python app

2008-04-03 Thread W W
Dean, Here's a tutorial/book that you should check out: http://www.greenteapress.com/thinkpython/ How to Think Like a (Python) Programmer by Allen B. Downey He generously has a free PDF to download, and the book makes use of some code - swampy.py I think if you 1) Read the book and try the

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Dave Kuhlman
On Thu, Apr 03, 2008 at 11:32:54AM -0400, Jeffrey Dates wrote: Hello, So as I'm starting to get into writing some scripts, I'm looking for recommendations for a nifty script editor. Ideally a freeware/shareware solution until I can justify a purchase of something more beefy. Currently

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Kent Johnson
Dave Kuhlman wrote: If you are looking for text editors, this page will give you more choices than you want: http://en.wikipedia.org/wiki/Comparison_of_text_editors And this: http://wiki.python.org/moin/PythonEditors When I worked on Windows I used TextPad, it's inexpensive but not

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Michael Langford
When you have you use Visual Studio, I suggest using the beautiful and wonder ViEmu. Best $90 I ever spent: http://www.viemu.com/ On Thu, Apr 3, 2008 at 2:40 PM, W W [EMAIL PROTECTED] wrote: On Thu, Apr 3, 2008 at 12:15 PM, Michael Langford [EMAIL PROTECTED] wrote: Many people who go this