#NEWLINE# def removeSelectedMarkers( self ) : #NEWLINE# #INDENT# ' Delete all of the selected markers from the grid layout' #NEWLINE# removeList = [ ] #NEWLINE# for marker in self . markerList : #NEWLINE# #INDENT# if marker . isSelected ( ) : #NEWLINE# #INDENT# self . removeMarker ( marker ) #NEWLINE# removeList . append ( marker ) #NEWLINE# for i in range ( ( self . markerList . index ( marker ) + 1 ) , len ( self . markerList ) ) : #NEWLINE# #INDENT# row = int ( self . markerList [ i ] . getEntryNumber ( ) ) #NEWLINE# self . markerList [ i ] . setEntryNumber ( ( row - 1 ) ) #NEWLINE# self . moveMarkerRow ( row , ( row - 1 ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for marker in removeList : #NEWLINE# #INDENT# if marker . isSelected ( ) : #NEWLINE# #INDENT# self . markerList . remove ( marker )