MouseEvent::GetButton

Hello,

I'm in the event handler of wx.EVT_MOUSE_EVENTS and I try to see which
button is involved when I click. The documentation indicates you must
use GetButton() but it does not seem to exist:
  
      wx.EVT_MOUSE_EVENTS(text_ctrl,
self.OnMouseEvents)
  
    def OnMouseEvents(self, event):
      if event.IsButton():
        print event.GetButton()

AttributeError: GetButton

···