Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2013 23:52
Show Gist options
  • Save anonymous/5962369 to your computer and use it in GitHub Desktop.
Save anonymous/5962369 to your computer and use it in GitHub Desktop.
class Test(object):
def something(self, x):
seg = str(x)
self.seg_button = Button(lambda: self.something_else(seg))
def something_else(self, seg):
print('string' + seg)
class Button(object):
def __init__(self, command):
self.command = command
def push(self):
self.command()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment