Skip to content

Instantly share code, notes, and snippets.



Created Jun 12, 2013
What would you like to do?
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)
def checkBoxCallback(self, sender):
print sender.get(), sender.getTitle()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment