def METHOD_NAME(self):
    """
    Removes buttons from info bar.
    """
    items = self.subSizerButtons.GetChildren()
    for item in reversed(items):
        if not item.IsSpacer():
            window = item.GetWindow()
            if window.GetId() in self.button_ids:
                self.subSizerButtons.Detach(window)
                window.Destroy()