PythonWin working, but stuck on first script :-(

Adolfo Aguirre puma1 at 101freeway.com
Fri Mar 3 13:39:50 CET 2000


Help :-(            This code:

def hello(msg):
     print "Hello,  " + msg

def maiin():
     import sys
     print "Script name is", Sys.argv[0]
 if len(sys.argv)>=2:
      hello(sys.argv[1])

 else:
      hello("Please say something next time")

 if __name__=='__main__':
      main()


Produced these error messages:

>>> Traceback (innermost last):
  File "C:\Program Files\Python\Pythonwin\pywin\framework\intpyapp.py", line
305, in OnViewOptions
    pages = pages + template.GetPythonPropertyPages()
  File "C:\Program
Files\Python\Pythonwin\pywin\framework\editor\color\coloreditor.py", line
1281, in GetPythonPropertyPages
    return EditorTemplateBase.GetPythonPropertyPages(self) +
[ColorEditorPropertyPage()]
  File "C:\Program
Files\Python\Pythonwin\pywin\framework\editor\template.py", line 28, in
GetPythonPropertyPages
    import configui
ImportError: No module named configui
win32ui: Error in Command Message handler for command ID 36879, Code 0






More information about the Python-list mailing list