mojo.glyphPreview

class GlyphPreview()

A vanilla Groups subclass that is able to display a glyph.

from vanilla import Window
from mojo.glyphPreview import GlyphPreview

class SimpleGlyphWindow:

    def __init__(self, glyph):

        self.w = Window((400, 400), glyph.name, minSize=(100, 100))

        self.w.glyphPreview = GlyphPreview((0, 0, -0, -0))
        self.w.glyphPreview.setGlyph(glyph)

        self.w.open()

SimpleGlyphWindow(CurrentGlyph())
Inherits from subclass: mojo.glyphPreview.GlyphPreview

setGlyph(glyph)

Set a glyph into the preview.

Last edited on 08/12/2018