View Single Post
Old Jan 1st, 2008, 5:09 PM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,886
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Re: Few questions about python/programming.

Could you clarify what you mean by a "real" program?

Do you mean a program that looks like a standard Windows Application? Or just one that provides a useful purpose?

For example, with basic Python knowledge, you could already make a program that runs an application routinely.

Python Syntax (Toggle Plain Text)
  1. import time
  2. import os
  3.  
  4. # Command to be executed
  5. cmd = "start c:/windows/notepad.exe"
  6.  
  7. # Interval to be run at
  8. wait = 300 # This is 5 minutes
  9.  
  10. # Loop infinitely
  11. while 1:
  12.  
  13. # Execute command
  14. os.system(cmd)
  15.  
  16. # Wait a bit
  17. time.sleep(wait)


But if you wanted to make that look like an actual Windows application, as opposed to something that runs in a console, that would involve learning how to use a Python GUI toolkit. That has a fairly steep learning curve.
Sane is offline   Reply With Quote