|
Overrides pype's readPreferences in order to hook into the setup of
the object. This is called before the pype.findbar.ReplaceBar.setup
routine, so we can use this hook to reset self.parent to our adapter
object: FindMinibuffer.
It's a bit tricky, and unfortunately I wasn't able to treat pype's
findbar as a black box. At __init__, self.parent points to the parent
wx.Frame object and is used in the constructor for the wx.Panel that
pype.findbar.ReplaceBar is based on, but after that, self.parent isn't
used in that capacity. So, we can point self.parent to our adapter
object and then extend the adapter object to do what pype needs.
|