StyleTextCtrl wx.EVT_SCROLL_CHANGED not firing

I’m trying to bind the mouse wheel to my StyleTextCtrl widget but when I scroll the mouse wheel it doesn’t fire the event.

self.richtext = wx.stc.StyledTextCtrl(self, style=wx.TE_MULTILINE)
self.richtext.Bind(wx.EVT_SCROLL_CHANGED, self.update_line_numbers())

Try passing the event handler without the parentheses:

self.richtext.Bind(wx.EVT_SCROLL_CHANGED, self.update_line_numbers)

That worked!!! Thank you!!!