from vanilla import FloatingWindow, List, ImageListCell
from defconAppKit.representationFactories.glyphCellFactory import GlyphCellFactory
class LastGlyphs:
rowHeight = 50
def __init__(self):
self.w = FloatingWindow((100,100+22),minSize=(100,100),maxSize=(100,5000))
if CurrentGlyph():
image = GlyphCellFactory(
glyph=CurrentGlyph(),
width=100,
height=self.rowHeight,
drawHeader=False,
drawMetrics=False
)
items = [
dict(image=image)
]
else:
items = []
self.w.glyphView = List((0,0,-0,-0),items,
rowHeight=self.rowHeight,
columnDescriptions=[
{"title": "image", "cell": ImageListCell()}
])
self.w.open()
if __name__=='__main__':
LastGlyphs()
self.font.layer in this line is a tuple. It doesn't have an argument `layerOrder.
I'm testing some stuff in RoboFont, I think I found the bug:
defconAppKit/Lib/defconAppKit/representationFactories/glyphCellFactory.py
Line 152 in 01fb5dd
self.font.layer in this line is a tuple. It doesn't have an argument `layerOrder.