View moduloUI.py
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 Window, RadioGroup, SquareButton | |
class ExampleCtrl(object): | |
ledsAmount = 6 | |
index = 0 | |
def __init__(self): | |
self.w = Window((150, 150), '% modulo') | |
self.w.someLeds = RadioGroup((20, 20, -20, -20), | |
[""]*self.ledsAmount, |
View imposeBooklet.py
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
#!/usr/bin/env python3 | |
# coding: utf-8 | |
# -------------- # | |
# impose booklet # | |
# -------------- # | |
### Modules | |
from os import mkdir | |
from os.path import basename, join, exists |
View typefaceOrientedGrid.py
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
#################################### | |
# Typeface oriented grid generator # | |
#################################### | |
""" | |
Usage: | |
- open .py file with Drawbot (drawbot.readthedocs.org) and launch | |
- use what the script prints out to set your InDesign document | |
""" |
View 1D_3states_automata.py
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
#!/usr/bin/env python3 | |
""" | |
One dimensional cellular automata with three states | |
If you want to know more about CAs check "A New Kind of Science" by Stephen Wolfram | |
https://www.wolframscience.com/nks/ | |
""" | |
### Modules |
View displayDistancesWithCheckbox.py
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
#!/usr/bin/env python3 | |
from math import hypot | |
from mojo.subscriber import Subscriber, WindowController | |
from mojo.subscriber import registerGlyphEditorSubscriber, unregisterGlyphEditorSubscriber | |
from mojo.roboFont import OpenWindow | |
from vanilla import FloatingWindow, CheckBox |
OlderNewer