[Tutor] keystroke via software

2006-07-09 Thread johnsonv3




Hi,
How can one make a networked Windows XP  
think a keystroke has been made every 13 minutes?  What would a 
python program to do this look like?
 
Thanks for your help.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python Programming Books

2006-07-14 Thread johnsonv3

I also am a novice.  Nearly finished with the first book listed below...

If learning Python for the fun of it I have found this one enjoyable (pasted 
below is listing at Amazon):


 Python Programming for the Absolute Beginner, Second Edition (For the 
Absolute Beginner) by Michael Dawson (Paperback - Nov 8, 2005)

 Books: See all 13 items
 Buy new:  $29.99 $18.89   Usually ships in 24 hours
 Used & new from $18.89

 If more serious and enjoy a little more math (though not too heavy) 
Many recommend the below.  I am finding it useful (another Amazon cut & 
paste) but not as fun:



   Python Programming: An Introduction to Computer Science by John 
M. Zelle (Paperback - Dec 2003)

   Books: See all 193 items
   Buy new:  $40.00 $28.00   Usually ships in 6 to 12 days
   Used & new from $20.00

   My mind is still not clear about classes and objects.  Have 
found chapters 12,13, and 14 of  How to Think Like a Computer Scientist: 
Learning with Python, by Downey, Elkner, and Meyers to be very helpful in 
understanding these concepts (I think also available from Amazon but there 
is a version that can be downloaded free).  However, I do not feel I have a 
full understanding at this point but expect to be getting close by the time 
I finish the first book listed above.






- Original Message - 
From: "Grady Henry" <[EMAIL PROTECTED]>

To: 
Sent: Friday, July 14, 2006 1:19 AM
Subject: [Tutor] Python Programming Books



I have three books on Python programming, "Learning Python" by O'Reilly,
"Beginning Python" by Hetland, and "Python in a Nutshell" by O'Reilly. 
Are

these good (recommended) books?  Any others that might be recommended?


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor 
<>
<>
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] search path

2006-07-22 Thread johnsonv3



Hi,
 
If one does this...
 
import sys
sys.path.append("C:\\panda\direct")
 
Is the change to python search path only temporary?
Thanks.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] search path

2006-07-22 Thread johnsonv3



Another search path question
 
When one installs a program (such as Panda or Livewires) into python 
sitepackage folder is the python search path automnatically updated to search 
the newly installed folders and files?
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] starting a program from python

2006-07-22 Thread johnsonv3



Hi,
Using Windows XP Home & python 234
I am trying to start python programs that run Panda 3D without having to 
open command prompt and type a path every time I run a program.
 
This pandastart.bat file works... 
 
cd C:\Panda3D-1.2.3\mystuff
ppython bvd.py
 
and from python shell this works
 
>>> subprocess.Popen("pandastart.bat")
 
But it is not flexible to start other file names..
 
So I would like to write a python script similar to this
 
import subprocesspanda = raw_input("Enter name of Panda python program 
to start 
(fileName.py)")subprocess.Popen("C:\panda3D-1.2.3\mystuff\panda")
 
But this is the result...
 
>>> 
subprocess.Popen("C:\panda3D-1.2.3\mystuff\bvd.py")Traceback (most recent 
call last):  File "", line 1, in 
?    
subprocess.Popen("C:\panda3D-1.2.3\mystuff\bvd.py")  File 
"C:\Python24\lib\subprocess.py", line 542, in __init__    
errread, errwrite)  File "C:\Python24\lib\subprocess.py", line 706, in 
_execute_child    startupinfo)WindowsError: [Errno 123] 
The filename, directory name, or volume label syntax is incorrect
 
Also tried the below (change to the path) with result as indicate 
below
 
>>> subprocess.Popen("C:\panda3D-1.2.3\mystuff 
bvd.py")Traceback (most recent call last):  File 
"", line 1, in ?    
subprocess.Popen("C:\panda3D-1.2.3\mystuff bvd.py")  File 
"C:\Python24\lib\subprocess.py", line 542, in __init__    
errread, errwrite)  File "C:\Python24\lib\subprocess.py", line 706, in 
_execute_child    startupinfo)WindowsError: [Errno 5] 
Access is denied
 
Have tried using os.system and os.startfile with similar results
 
Suggested solution?
Thanks. 
 
 
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor