PyPE 2.1 run problem

2005-08-17 Thread tony . ha
    filehistory.root = root = app.frame = MainWindow(None, -1, "PyPE", sys.argv[1+opn:])   File "pype.py", line 438, in __init__     self.loadHistory()   File "pype.py", line 1152, in loadHistory     self.config[nam][k] = dict(v) TypeError: iteration over non-seque

Python Design Patterns

2004-11-29 Thread Tony Ha
Hello I am learning Python for in the pass ten months, and have brought a few books about Python. Most of them are good books by its only right, and all of them only teach you how to write Python programs using Python syntax and Python ways, but no one single Python book explicitly teaches you

Re: Python Design Patterns

2004-11-30 Thread Tony Ha
Hello Dave, Thanks for pointing me to the Cookbook website. Tony Ha. "Dave Cook" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2004-11-29, Tony Ha <[EMAIL PROTECTED]> wrote: > > > I wonder, can any Python guru out there translate the Ja

How to pass an argument to a python program open in IDLE?

2006-11-15 Thread tony . ha
Hello, I have open a Python program in the IDLE, but when I select the "run module" under "run" menu, it does not allow me to pass an argument to my Python program! How do you pass an argument to a Python program under the IDLE? Thanks for you help! -- http://mail.python.org/mailman/listinfo/

Help with ConfigParser

2006-10-02 Thread tony . ha
Hello I use ConfigParser as show below to read a config.txt file; from ConfigParser import ConfigParser config = ConfigParser() config.read('config.txt') items = config.items('FV') for item in items:    module_name = item[0]    print module_name The config.txt file has the following [FV] # Se