Has threading in GTK w/ Python changed in PyGObject introspection?

后端 未结 1 445
庸人自扰
庸人自扰 2020-12-28 14:37

I\'m in the process of converting a program from PyGTK to PyGObject introspection for the first time and I\'ve hit a roadblock with threading. I have a process that takes so

相关标签:
1条回答
  • 2020-12-28 14:48

    I managed to answer my own question by poking through some Gnome programs written in Python (Gnome Sudoku, in this case, which actually has helped me a couple of times).

    The trick is that you have to call GObject.threads_init() at the beginning of your code, not GLib.thread_init() as the C documentation implies.

    0 讨论(0)
提交回复
热议问题