Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by JohnJohnUSA

  1. JohnJohnUSA

    How to specify default directory for saving files in Python IDLE

    I am using Python IDLE 2.4.3 on Windows XP. I use File ->New Window to create a new program. In the Save As dialog, it always takes me to the python program directory (where python is installed). Since this is not where I want to save my source file, I have to select the directory I want. Is...
  2. JohnJohnUSA

    Problem with File I/O

    Here is one solution to your problem. I modified the names in the program to make it easier for me to follow. This solution is based on the fact the each line in a file is terminated by the newline character ("\n"). The test data I used is as follows: HTMFileList.txt is the name of the...
  3. JohnJohnUSA

    Identify and trapping specific error reading WinXPregistry values

    I ran the following program to retrieve entries from the windows registry on Windows XP: Program Code: import win32api, win32con aReg = win32api.RegConnectRegistry(None, win32con.HKEY_CURRENT_USER) aKey = win32api.RegOpenKeyEx(aReg, r"Software\Microsoft\Internet Explorer\PageSetup") for i...

Part and Inventory Search

Back
Top