blob: c5ef80713388137ee79753ab118ec7697d5a57df (
plain) (
tree)
|
|
# -*- python -*-
from common import *
class MyScroll(Entry):
def function(self):
return '↓↑'
def action(self, col, button, x, y):
if button in (LEFT_BUTTON, RIGHT_BUTTON, SCROLL_UP, SCROLL_DOWN):
G.groupi = (G.groupi + (+1 if button in (LEFT_BUTTON, SCROLL_DOWN) else -1)) % len(G.groups)
G.group = G.groups[G.groupi]
self.invalidate()
|