Skip to content

Instantly share code, notes, and snippets.

@axani

axani/checkboxWindow

Created Jun 12, 2013
Embed
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)
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