Hacker News new | comments | show | ask | jobs | submit login

gtk.threads_enter()

try:

   blah
finally:

   gtk.threads_leave()
or even better and wrap that as a context manager so you do

with gtk_lock():

   blah



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: