Python,How does frameLayout present the closed state when opening UI?

Python,How does frameLayout present the closed state when opening UI?

2368457978
Enthusiast Enthusiast
269 Views
1 Reply
Message 1 of 2

Python,How does frameLayout present the closed state when opening UI?

2368457978
Enthusiast
Enthusiast

Hello, everyone, can python use frameLayout to present a closed state when opening the UI? When I open the UI now, the frameLayout is expanded.

cmds.frameLayout(label='old version', w=460, cll=True)
cmds.rowColumnLayout(nc=4, cal=(1, "left"), columnWidth=[(1, 100), (2, 200), (3, 80), (4, 80)])
cmds.text("attribute", h=20, bgc=(0.2, 0.5, 0.5))
cmds.text("numerical value",  h=20, bgc=(0.2, 0.5, 0.5))
cmds.text("key frame",  h=20, bgc=(0.2, 0.5, 0.5))
cmds.text("Delete keyframes", h=20, bgc=(0.2, 0.5, 0.5)) 
cmds.setParent("..")​


c197f65b253dc5daca974ad997bae45.png9f2fde301b18359ec6812e2a5cf11f5.png

0 Likes
Accepted solutions (1)
270 Views
1 Reply
Reply (1)
Message 2 of 2

Kahylan
Advisor
Advisor
Accepted solution

Hi!

 

Thats what the collapse (cl) flag is for:

cmds.frameLayout(label='old version', w=460, cll=True, cl = True)

 

I hope it helps!

0 Likes