[python-win32] Code help (Aleksandar Cikota)

Justin Ezequiel justin.mailinglists at gmail.com
Mon Apr 10 04:13:08 CEST 2006

FocusMax.FocusControl.Focus starts the auto focus operation and returns when
Focus is complete. This Method has the same effect as if the user clicked
the Focus button on the Focus tab (in FocusMax), but there is no reaction
and  I don't get any error message.

Python code:
FM.Focus() # you need the parentheses to call the method

in VBScript, the parentheses are not required

I sometimes forget the parentheses too when porting VB COM code to Python

More information about the Python-win32 mailing list