PEP 8 (I'm bored): core/modules

This commit is contained in:
enkore 2014-10-14 16:50:40 +02:00
parent 8db7b1d160
commit b2b34ad81a

View File

@ -27,9 +27,9 @@ class Module(SettingsBase):
self.on_leftclick() self.on_leftclick()
elif button == 3: # Right mouse button elif button == 3: # Right mouse button
self.on_rightclick() self.on_rightclick()
elif button == 4: # mouse wheel up elif button == 4: # mouse wheel up
self.on_upscroll() self.on_upscroll()
elif button == 5: # mouse wheel down elif button == 5: # mouse wheel down
self.on_downscroll() self.on_downscroll()
def move(self, position): def move(self, position):
@ -48,6 +48,7 @@ class Module(SettingsBase):
def on_downscroll(self): def on_downscroll(self):
pass pass
class IntervalModuleMeta(type): class IntervalModuleMeta(type):
"""Add interval setting to `settings` attribute if it does not exist.""" """Add interval setting to `settings` attribute if it does not exist."""