diff --git a/src/frameworks/tkinter/widgets/label.js b/src/frameworks/tkinter/widgets/label.js index be023db..ce71df5 100644 --- a/src/frameworks/tkinter/widgets/label.js +++ b/src/frameworks/tkinter/widgets/label.js @@ -88,10 +88,22 @@ class Label extends TkinterWidgetBase{ return requirements } + getConfigCode(){ + const config = super.getConfigCode() + + const anchor = this.getAttrValue("styling.anchor") + + if (anchor) + config['anchor'] = `"${anchor}"` + + return config + } + generateCode(variableName, parent){ const labelText = this.getAttrValue("labelWidget") + const config = convertObjectToKeyValueString(this.getConfigCode()) const image = this.getAttrValue("imageUpload")