Description the usage of Casing module ::-- limodou [2005-12-01 01:50:56]
1. What's it?
It's an functions capsulation module, which can make sequence functions a single object, and execute in order. And it also can make functions run as a thread, you can choose onprocess callback function to show the execution status. It will support multi thread schedule. It will make all these things easily.
Or you can just download it from here Casing.py
3.1. Example 1: Capsulate some functions together
As you can see, three functions are bundled as a single Casing object, and it can be execute together in the order of bundle. There are many methods to create a Casing object, you can also write the code as:
or using left add (+=)
using append method or
creating an empty Casing object and append function later.