working on code generation

This commit is contained in:
paul
2024-09-26 18:53:21 +05:30
parent 8c45f896f0
commit 7bba819c38
8 changed files with 194 additions and 6 deletions

View File

@@ -37,6 +37,14 @@ class TopLevel extends Widget{
this.setWidgetName("toplevel")
}
generateCode(variableName, parent){
return [
`${variableName} = tk.TopLevel(root=${parent})`,
`${variableName}.title("${this.getAttrValue("title")}")`
]
}
getToolbarAttrs(){
const toolBarAttrs = super.getToolbarAttrs()