title: GDK events handling without GTK
body: <p>I'm programming (in python) GDK without GTK, simply as a x11 abstraction. THIS POST IS MY LAST CHANCE.</p>
  
  <p>My problem is that I don't know how capture the GDK window's signals/events or what are their names.</p>
  
  <p>When I do:</p>
  
  <pre><code>window = gdk.Window(
              gdk.get_default_root_window(),
              width=400,
              height=200,
              window_type=gdk.WINDOW_CHILD,
              wclass=gdk.INPUT_OUTPUT,
              event_mask=gdk.KEY_PRESS_MASK | gdk.MOTION_NOTIFY | gdk.EXPOSURE_MASK)
  
  window.connect("key_press_event", on_key)
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>unknown signal name: key_press_event
  </code></pre>
  
  <p>GTK and PYGTK references talk about classes, functions and constants but nothing about their interrelation so they don't help.
  Is it about glib main loop? </p>
  
  <p>I need some examples. Any good GDK tutorial or source code? Any glib.MainLoop example for capturing GDK signals?</p>
  
  <p>Thank you.</p>