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)
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()