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

Method getConfigCode

src/frameworks/customtk/widgets/frame.js:124–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 getConfigCode(){
125 const bg = this.getAttrValue("styling.backgroundColor")
126
127 const fitWidth = this.state.fitContent.width
128 const fitHeight = this.state.fitContent.height
129
130 const {width, height} = this.getSize()
131
132 const {layout} = this.getParentLayout()
133
134 const config = {
135 bg: `"${bg}"`
136 }
137
138 if (layout !== Layouts.PLACE){
139 if (!fitWidth){
140 config['width'] = width
141 }
142
143 if (!fitHeight){
144 config['height'] = height
145 }
146 }
147
148 return config
149 }
150
151
152 generateCode(variableName, parent){

Callers 8

generateCodeMethod · 0.45
generateCodeMethod · 0.45
generateCodeMethod · 0.45
generateCodeFunction · 0.45
generateCodeFunction · 0.45
generateCodeFunction · 0.45
generateCodeFunction · 0.45
generateCodeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected