<s> """<STR_LIT>""" <EOL> import re <EOL> import maya . cmds as cmds <EOL> import amTools as am <EOL> __wordWrap__ = '<STR_LIT>' <EOL> __frameAlignBottom__ = '<STR_LIT>' <EOL> __frameAlignCenter__ = '<STR_LIT>' <EOL> if am . __mayaVersion__ < <NUM_LIT> : <EOL> __frameAlignBottom__ = '<STR_LIT>' <EOL> __frameAlignCenter__ = '<STR_LIT>' <EOL> else : <EOL> __wordWrap__ = '<STR_LIT>' <EOL> def aboutDialog ( title = '<STR_LIT>' , message = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> cmds . confirmDialog ( title = title , message = message , button = '<STR_LIT:OK>' , defaultButton = '<STR_LIT:OK>' , cancelButton = '<STR_LIT:OK>' , dismissString = '<STR_LIT:OK>' ) <EOL> def aboutMenuItem ( toolName , versionNumber , versionDate ) : <EOL> """<STR_LIT>""" <EOL> cmds . menuItem ( label = '<STR_LIT>' , command = '<STR_LIT>' % ( toolName , versionNumber , versionDate ) ) <EOL> def helpMenuItem ( toolName , file ) : <EOL> """<STR_LIT>""" <EOL> cmds . menuItem ( label = '<STR_LIT>' % toolName , <EOL> command = '<STR_LIT>' % ( am . kVersionNumber , <EOL> re . sub ( '<STR_LIT>' , '<STR_LIT>' , re . search ( '<STR_LIT>' , file [ file . rfind ( '<STR_LIT>' ) : ] ) . group ( <NUM_LIT:0> ) [ : - <NUM_LIT:1> ] ) . lower ( ) . replace ( '<STR_LIT:/>' , '<STR_LIT>' ) ) ) <EOL> def threeButtonLayout ( mainForm , windowName , cmd_create ) : <EOL> """<STR_LIT>""" <EOL> cmd_closeWindow = '<STR_LIT>' % ( am . __kCmdsGlobalName__ , windowName ) <EOL> btn_create = cmds . button ( h = <NUM_LIT> , label = '<STR_LIT>' , command = '<STR_LIT>' % ( cmd_create , cmd_closeWindow ) ) <EOL> btn_apply = cmds . button ( h = <NUM_LIT> , label = '<STR_LIT>' , command = cmd_create ) <EOL> btn_close = cmds . button ( h = <NUM_LIT> , label = '<STR_LIT>' , command = cmd_closeWindow ) <EOL> cmds . formLayout ( mainForm , edit = True , attachForm = [ ( btn_create , '<STR_LIT:left>' , <NUM_LIT:5> ) , ( btn_create , '<STR_LIT>' , <NUM_LIT:5> ) ] , attachPosition = [ ( btn_create , '<STR_LIT:right>' , <NUM_LIT:1> , <NUM_LIT> ) ] , attachNone = [ ( btn_create , '<STR_LIT>' ) ] ) <EOL> cmds . formLayout ( mainForm , edit = True , attachForm = [ ( btn_apply , '<STR_LIT>' , <NUM_LIT:5> ) ] , attachPosition = [ ( btn_apply , '<STR_LIT:left>' , <NUM_LIT:3> , <NUM_LIT> ) , ( btn_apply , '<STR_LIT:right>' , <NUM_LIT:3> , <NUM_LIT> ) ] , attachNone = [ ( btn_apply , '<STR_LIT>' ) ] ) <EOL> cmds . formLayout ( mainForm , edit = True , attachForm = [ ( btn_close , '<STR_LIT:right>' , <NUM_LIT:5> ) , ( btn_close , '<STR_LIT>' , <NUM_LIT:5> ) ] , attachPosition = [ ( btn_close , '<STR_LIT:left>' , <NUM_LIT:1> , <NUM_LIT> ) ] , attachNone = [ ( btn_apply , '<STR_LIT>' ) ] ) </s>
