Is it possible to use wx.FileHistory with a wx.lib.agw.FlatMenu? My
preliminary efforts have not succeeded, and I was hoping that there
was a way I could do this, short of re-implementing a FileHistory-like
object for use with FlatMenu.
Is it possible to use wx.FileHistory with a wx.lib.agw.FlatMenu? My
preliminary efforts have not succeeded, and I was hoping that there
was a way I could do this, short of re-implementing a FileHistory-like
object for use with FlatMenu.
No, it's not possible as far as I know. wx.FileHistory is wrapped in
Python from the underlying wxWidgets C++ code, and it will only accept
a wx.Menu item in its UseMenu() method, not a FlatMenuItem. Having
said that, rolling your own wx.FileHistory in pure Python (based on
wx.Config) should be fairly easy. If you implement it and it will be
easy to plug/unplug in FlatMenu please let me know, I believe we
should add it to the FlatMenu code base.