Created
June 12, 2013 12:29
-
-
Save axani/5764824 to your computer and use it in GitHub Desktop.
Basic window in RoboFont with checkbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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