Skip to content

Instantly share code, notes, and snippets.

@startling
Forked from willrjmarshall/gist:2411227
Created April 18, 2012 05:28
Show Gist options
  • Save startling/2411266 to your computer and use it in GitHub Desktop.
Save startling/2411266 to your computer and use it in GitHub Desktop.
# This is the API everything inherits from
class GenericApplicationConfigurationClass(object):
def __init__(self):
self.looper = Looper()
# And the small, configuration-only script I intend to write for each specific case
class SetUpMyApplication(GenericApplicationConfigurationClass):
def __init__(self):
# if the looper expects a "width" parameter, you can do this...
self.looper = Looper(20)
# or just
self.looper = Looper()
self.looper.width = 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment