[Tutor] Opening files?
jlohman@cox.net
jlohman@cox.net
Wed Mar 26 21:47:02 2003
>
> Another (better) solution is to simply create your code as functions,
> save it as a file, and then import it as a module from within IDLE.
> Instead of cutting and pasting, save what you've got in Notepad as,
> say, test.py. (I recommend putting it somewhere like [python
> directory]\Lib\site-packages, where it'll be separate from the standard
> library files but Python can still find it easily.) Then you can switch
> to IDLE and 'import test', and after that you'll be able to access your
> functions as 'test.myfunction()'. If you make changes to the code in
> Notepad, then in order to make the changes show up in IDLE you'll have
> to save the file again and then type 'reload(test)'.
Ahah! I downloaded Crimson editor and then found the editor in IDLE...bottom line is now I can write and run not only my own awkward little test programs, but I can use examples and pick them apart...NOW I am programming. This was along the lines of "Where is the "ANY" key?"<g> Now I know where it is, and I can continue...
Thanks, Jeff!
-Jeff