Skip to content

Instantly share code, notes, and snippets.

@willrjmarshall
Created April 18, 2012 05:12
Show Gist options
  • Save willrjmarshall/2411227 to your computer and use it in GitHub Desktop.
Save willrjmarshall/2411227 to your computer and use it in GitHub Desktop.
# This is the API everything inherits from
class GenericApplicationConfigurationClass(object):
def initialize(self):
self.looper = Looper()
# And the small, configuration-only script I intend to write for each specific case
class SetUpMyApplication(GenericApplicationConfigurationClass):
def initialize(self):
# boilerplate
self.looper.configure |looper|
looper.set_height(height())
def height(self):
20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment