python : container COMP parent access in the same level

If I’m stringing up a UI panel layout by using the connectors on top and bottom of container COMPS and I want to use parent width/height variables to control the child sizes, how can I do this in python? If I use me.parent().par.panelw it just goes up a network level instead of going to what is wired above it on the same level.

Try inputCOMPs instead of parent:

me.inputCOMPs[0].par.panelw