MCPcopy Create free account
hub / github.com/PaulleDemon/PyUIBuilder / generateCode

Method generateCode

src/frameworks/customtk/widgets/frame.js:152–162  ·  view source on GitHub ↗
(variableName, parent)

Source from the content-addressed store, hash-verified

150
151
152 generateCode(variableName, parent){
153
154 const bg = this.getAttrValue("styling.backgroundColor")
155
156 return [
157 `${variableName} = ctk.CTkFrame(master=${parent})`,
158 `${variableName}.configure(fg_color="${bg}")`,
159 `${variableName}.${this.getLayoutCode()}`,
160 ...this.getGridLayoutConfigurationCode(variableName)
161 ]
162 }
163
164 getToolbarAttrs(){
165 const {layout, gridConfig, gridWeights, ...toolBarAttrs} = super.getToolbarAttrs()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected