def setBuffer(self, buffer): """Convenience function overriding BufferFrame.setBuffer to open an existing document in a new frame. This may be a temporary solution -- actions that set osx_minimal_menu may find that this leads to unexpected consequences if they are expecting all methods of BufferFrame to have this implicit behavior. """ frame = BufferFrame(['about:blank']) wx.CallAfter(frame.setBuffer, buffer)
def titleBuffer(self): BufferFrame.open(self, "about:osx_menu") # Mac menu bar will remain visible after being hidden wx.CallAfter(self.Show, False)
def titleBuffer(self): BufferFrame.open(self, "about:osx_menu")