get the URL of previous visit and current visit

Hello,
I am playing with the ActiveX_IEHtmlWindow.py file in the wxpython demo program. I hope to get the URL of previous visit and current visit, and save it to a text file.
I have spent three days on it, but no progress. If you know, please teach me. Thanks.

ActiveX_IEHtmlWindow.py (8.04 KB)

···

He Jibo
Department of Psychology,
Beckman Institute for Advanced Science and Technology
University of Illinois, Urbana Champaign,
603 East Daniel St.,
Champaign, IL 61820

website: www.hejibo.info