[QUOTE=Jeff Hanna;30266]Iād declare the lists outside of the call to formLayout.
formAttach = [(self.uiGrpField, 'left', 0), (self.uiClrBtn, 'left', 0), (self.uiLbl, 'left', 0), (self.uiBtnOpt, 'left', 0), (self.uiBtnHelp, 'left', 0), (self.uiBtnReset, 'left', 0)]
controlAttach = [(self.uiSep, 'top', 5, self.uiBtnOpt), (self.uiSep, 'top', 5, self.uiBtnHelp), (self.uiSep, 'top', 5, self.uiBtnReset), (self.uiBtnOpt, 'left', 5, self.uiBtnHelp), (self.uiBtnReset, 'left', 5, self.uiBtnOpt)]
mc.formLayout(self.topForm, edit=True, attachForm=formAttach, attachControl=controlAttachList)
Itās much easier to read and if you needed to line-break you could cleanly do it after any of the comma separated values within the two lists.[/QUOTE]
Hey, thanks for getting back to me.
As you are mentioning about the need to line-break, do you mean to say it will be as follows:
mc.formLayout(self.topForm, edit=True,
attachForm = [(self.uiGrpField, 'left', 0), (self.uiClrBtn, 'left', 0), (self.uiLbl, 'left', 0), (self.uiBtnOpt, 'left', 0), (self.uiBtnHelp, 'left', 0), (self.uiBtnReset, 'left', 0)],
attachControl = [(self.uiSep, 'top', 5, self.uiBtnOpt), (self.uiSep, 'top', 5, self.uiBtnHelp), (self.uiSep, 'top', 5, self.uiBtnReset), (self.uiBtnOpt, 'left', 5, self.uiBtnHelp), (self.uiBtnReset, 'left', 5, self.uiBtnOpt)])