code: def inputhook_gtk():
      gobject.io_add_watch(sys.stdin, gobject.IO_IN, _main_quit)
      gtk.main()
      return 0
  
imports: import sys
  import gtk, gobject
label_desc: Use image node_id 2 for calling a global function with example usage: inputhook_gtk() and returns: int