Author Topic: new thread  (Read 1669 times)

costa rica

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
    • costa rica hotel & resort
new thread
« on: April 27, 2011, 08:33:03 AM »
1. Is it possible to prevent the execution of a function when inputting parameters in the function wizard?

2. is it possible to break the execution of the pyxll functions when the program hangs or a function is not returning a value?

Tony

  • Administrator
  • Hero Member
  • *****
  • Posts: 606
  • Karma: +14/-1
    • View Profile
Re: new thread
« Reply #1 on: May 02, 2011, 09:13:17 PM »
Hi,

yes, as of version 1.2 (which has just been released) it is possible to prevent functions from running in the function wizard. Use the optional keyword argument disable_function_wizard_calc=True when registering a function with xl_func.

You can also use pyxll.get_dialog_type from your function to determine where your function is being called from.

It is not possible to force python functions to return early if they are hanging. You could use a debugger like winpdb to break into running functions though as PyXLL just uses the standard cpython interpreter.

Regards,
Tony