Skip to content

Commit

Permalink
code formating
Browse files Browse the repository at this point in the history
  • Loading branch information
hdavid committed May 31, 2014
1 parent 1eb6b5d commit f8d03d3
Show file tree
Hide file tree
Showing 18 changed files with 1,913 additions and 1,987 deletions.
6 changes: 4 additions & 2 deletions ConfigurableButtonElement.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import Live
from _Framework.ButtonElement import *


class ConfigurableButtonElement(ButtonElement):

""" Special button class that can be configured with custom on- and off-values """

def __init__(self, is_momentary, msg_type, channel, identifier):
Expand Down Expand Up @@ -35,7 +37,7 @@ def turn_off(self):
def reset(self):
self.send_value(4)

def add_value_listener(self, callback, identify_sender = False):
def add_value_listener(self, callback, identify_sender=False):
if not self._is_notifying:
ButtonElement.add_value_listener(self, callback, identify_sender)
else:
Expand All @@ -50,7 +52,7 @@ def receive_value(self, value):

self._pending_listeners = []

def send_value(self, value, force = False):
def send_value(self, value, force=False):
ButtonElement.send_value(self, value, force or self._force_next_value)
self._force_next_value = False

Expand Down
3 changes: 2 additions & 1 deletion DefChannelStripComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
from ConfigurableButtonElement import ConfigurableButtonElement
from itertools import chain


class DefChannelStripComponent(ChannelStripComponent):

""" Subclass of channel strip component offering defaultbuttons for the timeables """

def __init__(self):
Expand Down Expand Up @@ -258,4 +260,3 @@ def _on_send2_changed(self):
self._default_send2_button.turn_on()
else:
self._default_send2_button.turn_off()

Loading

0 comments on commit f8d03d3

Please sign in to comment.