I have a Python Tkinter Text widget with scrollbars. I would like to define my own method for using horizontal edge scrolling on my laptop's touchpad. However, I don't know the event name(s) to allow me to do this. The vertical events work fine (so does pressing shift and using the vertical edge scroll to do horizontal scrolling). What are the event names I'm looking for? They don't appear to be "<Button-6>"
and "<Button-7>"
, as these give errors; e.g.
_tkinter.TclError: specified keysym "6" for non-key event
I'm not sure what "<Button-6>"
has to do with keys, but okay.
I'm using Linux (I say this because the events for vertical scrolling are different on Linux than Windows). I know how to discover unknown event names from key presses, but I'm not sure how to do that with the touchpad, too.
Looking at the list of events for a Text widget doesn't seem particularly insightful (other than that I don't see an event that looks like it's for the horizontal mousewheel).
I'm using Python 3.5.3 on Linux (Xubuntu 17.04, 64-bit).