def netCall(func, *params, **kwparams):
    """A nice wrapper function, returns a deferred.
    Lets you safely call a function in the net thread
    from the gui thread"""
    d = Deferred()
    simpleCommand((func, params, kwparams), d.callback, d.errback)
    return d
A nice wrapper function, returns a deferred.
    Lets you safely call a function in the net thread
    from the gui thread
recipes/Python/286201_wx_twisted_support_using_threads/recipe-286201.py