#NEWLINE# def _draw( self ) : #NEWLINE# #INDENT# grid_layout_width = pm . gridLayout ( 'selectionManager_gridLayout1' , q = True , w = True ) #NEWLINE# form_layout = pm . formLayout ( p = 'selectionManager_gridLayout1' , w = grid_layout_width , nd = 100 ) #NEWLINE# with form_layout : #NEWLINE# #INDENT# self . replaceButton = pm . button ( ann = 'Replace' , l = 'R' , w = 17 ) #NEWLINE# self . addButton = pm . button ( ann = 'Add' , l = '+' , w = 17 ) #NEWLINE# self . subtractButton = pm . button ( ann = 'Subtract' , l = '-' , w = 17 ) #NEWLINE# self . saveButton = pm . button ( ann = 'Save as quick selection set with the description as the name of the set' , l = 'S' , w = 17 ) #NEWLINE# self . updateButton = pm . button ( ann = 'Updates the list with the current selection' , l = 'U' , w = 17 ) #NEWLINE# self . deleteButton = pm . button ( ann = 'Deletes this button set' , l = 'D' , w = 17 ) #NEWLINE# self . descriptionField = pm . textField ( text = self . description , w = 204 ) #NEWLINE# #UNINDENT# self . description = self . description #NEWLINE# self . layout = pm . formLayout ( form_layout , edit = True , attachForm = [ ( self . replaceButton , 'left' , 0 ) , ( self . replaceButton , 'top' , 0 ) , ( self . replaceButton , 'bottom' , 0 ) , ( self . addButton , 'top' , 0 ) , ( self . addButton , 'bottom' , 0 ) , ( self . subtractButton , 'top' , 0 ) , ( self . subtractButton , 'bottom' , 0 ) , ( self . saveButton , 'top' , 0 ) , ( self . saveButton , 'bottom' , 0 ) , ( self . updateButton , 'top' , 0 ) , ( self . updateButton , 'bottom' , 0 ) , ( self . deleteButton , 'top' , 0 ) , ( self . deleteButton , 'bottom' , 0 ) , ( self . descriptionField , 'top' , 0 ) , ( self . descriptionField , 'bottom' , 0 ) , ( self . descriptionField , 'right' , 0 ) ] , attachControl = [ ( self . addButton , 'left' , 0 , self . replaceButton ) , ( self . subtractButton , 'left' , 0 , self . addButton ) , ( self . saveButton , 'left' , 0 , self . subtractButton ) , ( self . updateButton , 'left' , 0 , self . saveButton ) , ( self . deleteButton , 'left' , 0 , self . updateButton ) , ( self . descriptionField , 'left' , 0 , self . deleteButton ) ] , attachPosition = [ ( self . replaceButton , 'right' , 0 , 5 ) , ( self . addButton , 'right' , 0 , 10 ) , ( self . subtractButton , 'right' , 0 , 15 ) , ( self . saveButton , 'right' , 0 , 20 ) , ( self . updateButton , 'right' , 0 , 25 ) , ( self . deleteButton , 'right' , 0 , 30 ) ] ) #NEWLINE# self . replaceButton . setCommand ( pm . Callback ( self . selection_set . replace ) ) #NEWLINE# self . addButton . setCommand ( pm . Callback ( self . selection_set . add ) ) #NEWLINE# self . subtractButton . setCommand ( pm . Callback ( self . selection_set . subtract ) ) #NEWLINE# self . saveButton . setCommand ( pm . Callback ( self . save_button ) ) #NEWLINE# self . updateButton . setCommand ( pm . Callback ( self . selection_set . update ) ) #NEWLINE# self . deleteButton . setCommand ( pm . Callback ( self . delete_button ) )