class_docstr: A class to embed a kernel into the GTK main event loop.
docstr: Initializes the kernel inside GTK.
  
  This is meant to run only once at startup, so it does its job and
  returns False to ensure it doesn't get run again by GTK.
docstr_tok: ["Initializes","the","kernel","inside","GTK",".","This","is","meant","to","run","only","once","at","startup",",","so","it","does","its","job","and","returns","False","to","ensure","it","does","n't","get","run","again","by","GTK","."]
code: def _wire_kernel(self):
      """Initializes the kernel inside GTK.
  
      This is meant to run only once at startup, so it does its job and
      returns False to ensure it doesn't get run again by GTK.
      """
      self.gtk_main, self.gtk_main_quit = self._hijack_gtk()
      GObject.timeout_add(
          int(1000 * self.kernel._poll_interval), self.iterate_kernel
      )
      return False
  
file_path: catboost/contrib/python/ipykernel/py3/ipykernel/gui/gtk3embed.py
imports: import sys
  import warnings
  import gi
  from gi.repository import GObject, Gtk
label_desc: Use image node_id 3 for calling the GTKEmbed obj's underlying member method code with example usage: obj._wire_kernel() and returns: False