The IronPython script empty_gui.py defines the functions that
the task executes from the context menu and update callbacks. Because the XML file
has both the callbacks <onupdate>
and
<onclick>
, the update and click methods are defined
in the script.
import clr clr.AddReference("Ans.UI.Toolkit") clr.AddReference("Ans.UI.Toolkit.Base") import Ansys.UI.Toolkit def click(task): Ansys.UI.Toolkit.MessageBox.Show("Empty Test!") def update(task): ExtAPI.Log.WriteMessage('empty update')