The string called through the input window cannot be used

The string called through the input window cannot be used.
If I write with double quotes “g8294”,It’s ok.
But if through the input window cannot be used.
Looks like it doesn’t recognize double quotes that are called.

import os
import GlyphsApp
from vanilla import *
font = Glyphs.font
class ScriptInterface(object):


def init(self):
self.w = Window((600, 200), title=“Import Many Images”)
self.w.box2 = Box((10, 10, -10, 40))
self.w.box2.extensiontext = TextBox((40, 5, -400, 20), text=“Extension(name)”)
self.w.box2.extension = EditText((210, 5, -10, 20), placeholder=“name”)
self.w.path = TextBox((10, 115, -10, 20))
self.w.getXYWH = Button((220, 140, -200, 20), “get X Y W H”, callback=self.getXYWH) # getXYWH Button
# function for getXYWH button
def getXYWH(self, sender):
for Layer in Glyphs.font.selectedLayers:
a = self.w.box2.extension.get()
print a
compname = a
print compname
comp = None
for c in Layer.components:
if c.componentName == compname:
comp = c
comp.selected = True
component = comp
scaleX, skewX, skewY, scaleY, positionX, positionY = component.transform
print positionX
print positionY
print scaleX
print scaleY


What happens if you remove the quotes?

It is solved. Thank you very much.:star_struck::star_struck::star_struck: