added anchor code

This commit is contained in:
paul
2025-03-25 21:01:39 +05:30
parent 1b8ab3938d
commit 92a967721a

View File

@@ -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")