Re: Routing scroll events in a Gtk.Overlay






On Thu, Jun 5, 2014 at 4:12 PM, Robert Schroll <rschroll gmail com> wrote:

def eb_scroll(widget, event):
   print "Event Box scroll event"
   return True
eb.connect('scroll-event', eb_scroll)

this connects after the default handler, not before it.

i don't know pygtk all that well; in gtkmm (the C++ binding) there is an optional "before" boolean argument to the connect call to get the handler connected BEFORE the default handler.
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]