Basic invisible interface support

This commit is contained in:
2015-01-19 12:15:57 -06:00
parent fd70bedc05
commit 7b1f2f9482
8 changed files with 210 additions and 30 deletions

View File

@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
import logging
log = logging.getLogger("mysc.thread_utils")
import threading
import wx
from pubsub import pub
@@ -13,7 +15,7 @@ def call_threaded(func, *args, **kwargs):
except TwythonRateLimitError:
pass
except:
logging.exception("Thread %d with function %r, args of %r, and kwargs of %r failed to run." % (threading.current_thread().ident, func, a, k))
log.exception("Thread %d with function %r, args of %r, and kwargs of %r failed to run." % (threading.current_thread().ident, func, a, k))
# pass
thread = threading.Thread(target=new_func, args=args, kwargs=kwargs)
thread.daemon = True