parameters: (self, fname)
docstring: Add a file to the history
          @param fname: Unicode
docstring_summary: Add a file to the history
          @param fname: Unicode
docstring_tokens: Add a file to the history @param fname : Unicode
function: def AddFileToHistory(self, fname):
          """Add a file to the history
          @param fname: Unicode
  
          """
          if not fname:
              return
          assert txtutil.IsUnicode(fname)
          assert self.Menu is not None
          # Shuffle to top of history if already in there
          if fname in self.History:
              self.History.remove(fname)
          self.History.insert(0, fname)
          # Maintain set length
          if self.Count > self.MaxFiles:
              self._history.pop()
          # Update menu object for new history list
          self._UpdateMenu()
function_tokens: def AddFileToHistory ( self , fname ) : if not fname : return assert txtutil . IsUnicode ( fname ) assert self . Menu is not None # Shuffle to top of history if already in there if fname in self . History : self . History . remove ( fname ) self . History . insert ( 0 , fname ) # Maintain set length if self . Count > self . MaxFiles : self . _history . pop ( ) # Update menu object for new history list self . _UpdateMenu ( )