-
-
Save startling/2411266 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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