fromvanillaimport*classMoveGlyphWindow:def__init__(self,glyph):ifglyphisNone:print("There should be a glyph window selected!!")returnself.glyph=glyphself.moveX=0self.moveY=0self.w=Window((200,60),"Move %s"%self.glyph.name)self.w.horizontalSlider=Slider((10,10,-10,22),value=0,maxValue=200,minValue=-200,callback=self.adjust)self.w.verticalSlider=Slider((10,30,-10,22),value=0,maxValue=200,minValue=-200,callback=self.adjust)self.w.open()defadjust(self,sender):hValue=self.w.horizontalSlider.get()vValue=self.w.verticalSlider.get()x=self.moveX-hValuey=self.moveY-vValueself.moveX=hValueself.moveY=vValueself.glyph.moveBy((x,y))OpenWindow(MoveGlyphWindow,CurrentGlyph())