Q: Any sampe code for FileBrowseButtonWithHistory

Hi, group,
             I am new user for wxpython and it already impressed me. I will definitely stick with it.
             Now I have a problem with FileBrowseButtonWithHistory. I cannot make its history list workable (remember current history and load it next time) and I also can not find the useful document for it. Can anybody provide me a sample?

BTW, I checked the demo code for FileBrowseButtonWithHistory coming together with wxpython. It seems just provide a history list, but cannot remember the new filename and save it when quit. I tried to modify it based on this demo code, but I failed to make it work.

Thanks.

Chunlei

Chunlei Wu wrote:

Hi, group,
            I am new user for wxpython and it already impressed me. I will definitely stick with it.
            Now I have a problem with FileBrowseButtonWithHistory. I cannot make its history list workable (remember current history and load it next time) and I also can not find the useful document for it. Can anybody provide me a sample?

BTW, I checked the demo code for FileBrowseButtonWithHistory coming together with wxpython. It seems just provide a history list, but cannot remember the new filename and save it when quit. I tried to modify it based on this demo code, but I failed to make it work.

You just need to call GetHistory to get a list value to save and then save it somewhere. Then when you want to reinitialize the control read your list from wherever you saved it and call SetHistory.

···

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