Increase priority of GUI thread

Hi,

my wxPython app generates csound code (a programming language designed
for sound rendering and signal processing with python bindings) and
starts csound in a separate thread via the threading module. This csound
thread fetches at start time the actual state of the underlying model,
represented and controlled by the GUI, runs the following loop and is
otherwise completely independent from the GUI (no lock or something like
that needed).

···

,----

while self._playing:
    csound.performKsmps()

`----

My problem: When the csound thread is running my wxPython GUI gets
nearly unusable.

Can I somehow increase the priority of the GUI thread (normal wxPython
MainLoop) when it is not idle, e.g. when moving/connecting modules?

Here's a screenshot for better understanding:

regards,
   Sebastian