parameters: (self, msg)
docstring: Re-run the last run program.
          @param msg: MSG_RUN_LAST
docstring_summary: Re-run the last run program.
          @param msg: MSG_RUN_LAST
docstring_tokens: Re - run the last run program . @param msg : MSG_RUN_LAST
function: def OnRunLastMsg(self, msg):
          """Re-run the last run program.
          @param msg: MSG_RUN_LAST
  
          """
          if self.CanLaunch():
              fname, ftype = self.GetLastRun()
              # If there is no last run file return
              if not len(fname):
                  return
  
              shelf = self.MainWindow.GetShelf()
              self.UpdateCurrentFiles(ftype)
              self.SetFile(fname)
              self.RefreshControlBar()
              shelf.RaiseWindow(self)
  
              if self.Preferences.get('autoclear'):
                  self._buffer.Clear()
  
              self.SetProcessRunning(True)
  
              self.Run(fname, self.State['lcmd'], self.State['largs'], ftype)
function_tokens: def OnRunLastMsg ( self , msg ) : if self . CanLaunch ( ) : fname , ftype = self . GetLastRun ( ) # If there is no last run file return if not len ( fname ) : return shelf = self . MainWindow . GetShelf ( ) self . UpdateCurrentFiles ( ftype ) self . SetFile ( fname ) self . RefreshControlBar ( ) shelf . RaiseWindow ( self ) if self . Preferences . get ( 'autoclear' ) : self . _buffer . Clear ( ) self . SetProcessRunning ( True ) self . Run ( fname , self . State [ 'lcmd' ] , self . State [ 'largs' ] , ftype )