Skip to content

Instantly share code, notes, and snippets.

@axani
Created June 12, 2013 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axani/5764824 to your computer and use it in GitHub Desktop.
Save axani/5764824 to your computer and use it in GitHub Desktop.
Basic window in RoboFont with checkbox
from vanilla import *
class checkboxWindow:
def __init__(self):
self.w = Window((400,400), 'SetOrganizer')
self.w.checkBox1 = CheckBox((10, 10, -10, -10), 'Label', callback=self.checkBoxCallback, value=True)
self.w.checkBox2 = CheckBox((10, 35, -10, -10), 'Label', callback=self.checkBoxCallback, value=True)
self.w.open()
def checkBoxCallback(self, sender):
print sender.get(), sender.getTitle()
checkboxWindow()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment