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

Method getConfigCode

src/frameworks/tkinter/widgets/frame.js:125–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 10

generateCodeMethod · 0.95
generateCodeMethod · 0.45
generateCodeMethod · 0.45
generateCodeMethod · 0.45
generateCodeFunction · 0.45
generateCodeFunction · 0.45
generateCodeFunction · 0.45
generateCodeFunction · 0.45
getConfigCodeFunction · 0.45
generateCodeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected