code: def inputhook_gtk3():
      GLib.io_add_watch(sys.stdin, GLib.IO_IN, _main_quit)
      Gtk.main()
      return 0
  
imports: import sys
  from gi.repository import Gtk, GLib
label_desc: Use image node_id 2 for calling a global function with example usage: inputhook_gtk3() and returns: int