View Single Post
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#7
Today I really tried to get this working...but to no avail. My code is as follows:

Code:
      if event.keyval == gtk.keysyms.Up:
         adj = self.sw.get_vadjustment()
         adj.page_increment = gtk.SCROLL_PAGES
         val = adj.get_value()
         adj.set_value(val+(gtk.SCROLL_PAGE))
         self.sw.set_vadjustment(adj)
If anyone has any other ideas, I'll try 'em out, but if not, I'll just not implement hardware key scrolling (I don't think it's a huge deal).