[python-win32] Code help (Aleksandar Cikota)

Bob Gailer bgailer at alum.rpi.edu
Mon Apr 10 07:36:45 CEST 2006


Justin Ezequiel wrote:
> 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
>   
This also points out a strength of Python over VB: Python lets one refer 
to function objects. VB does not. I can for example create a list or 
dictionary of functions.
> I sometimes forget the parentheses too when porting VB COM code to Python
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
>
>   



More information about the Python-win32 mailing list