Appendix B shows sample code for a custom Function Selector.
附录B显示了一个自定义函数选择器的示例代码。
If a file is selected, then run the custom function; otherwise, do nothing.
如果选择了文件,则运行定制函数;否则,不进行任何操作。
Using the custom function inside the form
使用表单内部的定制函数
This method is called whenever a custom function needs to be executed.
只要需要执行定制函数,就调用该方法。
The sample custom function accesses the file information and displays the results in the form.
示例定制函数将访问文件信息并在表单中显示结果。
Creating the evaluate method that will contain your custom function.
创建包含定制函数的evaluate方法。
Typically the billing system provides custom management function.
计费系统通常提供定制的管理功能。
Prior to Python 2.4, it was possible to implement a custom CMP function to pass to list.sort .
在Python 2.4之前,完全有可能实现定制的cmp函数并将它传递给list . sort 。
If needed, you could supply your own custom masking function.
如果需要,您可以提供自己的自定义屏蔽功能。
Use this function if you are creating custom error types.
如果要创建自定义错误类型,请使用此函数。
Registering your custom function.
注册定制函数。
Defining a unique ID for your custom function.
为定制函数定义惟一的ID。
The third argument is our custom function that we want to call.
第三个参数是想要调用的定制函数。
This method contains your custom function and is also described in further detail later.
该方法包含定制函数,稍后将进一步对它进行详述。
Add help to your custom function by calling the help method.
通过调用help方法,向定制函数添加帮助。
Implementing the custom function selector.
实现自定义函数选择器。
The third USES the custom Spanish collation function.
第三个使用自定义的西班牙语排序函数。
Supplies a hash code for an object, using a custom hash function.
使用自定义哈希函数为对象提供哈希代码。
Supplies a hash code for an object, using a custom hash function.
使用自定义哈希函数为对象提供哈希代码。
应用推荐