Пример #1
0
 def scroll(self,w,event):
     if  event.direction == gdk.EventScroll().direction.UP:
        self.durak(True)
     elif event.direction ==  gdk.EventScroll().direction.DOWN:
        self.durak(False)      
Пример #2
0
 def scr(self,w,event):
     print (event.direction , gdk.EventScroll().direction.UP)
     if event.direction ==  gdk.EventScroll().direction.SMOOTH:
         self.notebook.next_page()
     if  event.direction ==  gdk.EventScroll().direction.DOWN:
         self.notebook.next_page()