Example #1
0
 def _buildUI(self):
     w = FloatingWindow((300, 340), "Rotated Glyph Preview", (300, 340), (2560, 1440))
     w.preview = GlyphPreview((2, 2, -2, -40))
     w.rotationSlider = Slider((10, -30, -10, 20),
         minValue=-180,
         maxValue=180,
         value=self.settings["rotation"],
         tickMarkCount=5,
         stopOnTickMarks=False,
         continuous=True,
         callback=self._setRotation,
         sizeStyle="small",
     )
     
     return w
    def _buildUI(self):
        w = FloatingWindow((300, 340), "Rotated Glyph Preview", (300, 340),
                           (2560, 1440))
        w.preview = GlyphPreview((2, 2, -2, -40))
        w.rotationSlider = Slider(
            (10, -30, -10, 20),
            minValue=-180,
            maxValue=180,
            value=self.settings["rotation"],
            tickMarkCount=5,
            stopOnTickMarks=False,
            continuous=True,
            callback=self._setRotation,
            sizeStyle="small",
        )

        return w