Window doesn't show in python interpreter in GTK3 without Gtk.main()

依然范特西╮ 提交于 2019-12-05 12:47:51

I tried to process pending events with the following one-liner:

>>> while Gtk.events_pending(): Gtk.main_iteration()

and it looks to have the same behaviour. It's not so convenient, but you can still do some work in the interpreter.

Alternatively, if you're developing a Gtk application, pdb.set_trace will still work and let you debug callbacks if that's what you're looking for.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!