Checking if gtk mainloop is running
1 answer
You can use the function Gtk.main_level()
:
Gtk.main_level()
Returns: the nesting level of the current invocation of the main loop
In other words, a return value of 0 means that mainluop is not working.
+5
source to share