Use gtk.gdk.lock context manager in place of threads_(enter|leave)