def makeNetSafe(func):
    """Makes NET function safe for calling from the GUI thread.
    Takes a func and returns a thread safe version of it
    for calling a net func from the gui func"""
    def result(*params, **kwparams):
        return netCall(func, *params, **kwparams)
    return result
Makes NET function safe for calling from the GUI thread.
    Takes a func and returns a thread safe version of it
    for calling a net func from the gui func
recipes/Python/286201_wx_twisted_support_using_threads/recipe-286201.py