Clearing wxFileHistory menu?

Gary Cramblitt wrote:

I need to clear the file history menu. This almost works, but leaves
an entry in the menu with a blank file name:

How about something like this?:

  while fileHistory.GetCount():
    fileHistory.RemoveFileFromHistory(0)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!