class Messenger(object):
    """
    Externally provided interface for those components that provide
    global Push feedback.
    """
    expect_dialog = dependency(expect_dialog=const(nop))
    show_notification = dependency(show_notification=const(nop))
Exemplo n.º 2
0
class BaseMessenger():
  """ Interface for components that provide global controls, 
  e.g. control_surface, log_message, with_session, with_sequence 
  
  To keep things DRY, we define some shared methods here! Magic!
  """

  log_message = dependency(log_message=None)
  control_surface = dependency(control_surface=None)
  reset_controlled_track = dependency(reset_controlled_track=None)
  with_sequencer = dependency(with_sequencer = None)
  with_session = dependency(with_session = None)
  with_note = dependency(with_note = None)
  display_num = dependency(display_num = None)
  
  @property
  def utility_buttons(self):
    return self.control_surface.utility_buttons
Exemplo n.º 3
0
class APCMessenger(object):
    log_message = dependency(log_message=None)
    control_surface = dependency(control_surface=None)