parameters: (self, viewer_index=-1)
docstring: viewer index can be used as a sanity check
docstring_summary: viewer index can be used as a sanity check
docstring_tokens: viewer index can be used as a sanity check
function: def remove_last_item_viewer(self, viewer_index=-1):
          """viewer index can be used as a sanity check"""
          if (viewer_index == len(self.item_viewers) - 1) or (viewer_index == -1):
              last_viewer = self.item_viewers.pop()
              last_viewer.tk_frame.destroy()
              del last_viewer
              self.number_item_viewers -= 1
          else:
              print "WARNING [TreeViewer.remove_last_item_viewer]: viewer_index {} is not the last viewer widget in the array".format(viewer_index)
function_tokens: def remove_last_item_viewer ( self , viewer_index = - 1 ) : if ( viewer_index == len ( self . item_viewers ) - 1 ) or ( viewer_index == - 1 ) : last_viewer = self . item_viewers . pop ( ) last_viewer . tk_frame . destroy ( ) del last_viewer self . number_item_viewers -= 1 else : print "WARNING [TreeViewer.remove_last_item_viewer]: viewer_index {} is not the last viewer widget in the array" . format ( viewer_index )