def makeGuiSafe(func):
    """Makes a GUI function safe for calling from the NET thread.
    Returns a wrapper func that allows you to
    safely call the gui func 'func' from the net thread"""
    def result(*params, **kwparams):
        return guiCall(func, *params, **kwparams)
    return result
Makes a GUI function safe for calling from the NET thread.
    Returns a wrapper func that allows you to
    safely call the gui func 'func' from the net thread
recipes/Python/286201_wx_twisted_support_using_threads/recipe-286201.py