def _runInMainThread(self, f):
        if hasattr(self, "wxapp"):
            wxCallAfter(f)
        else:
            # wx shutdown but twisted hasn't
            self._postQueue.put(f)
Schedule function to run in main wx/Twisted thread.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/wxreactor.py/WxReactor._runInMainThread