X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..61940a7061d0b5d5122b1e1e939cfa2d72596999:/wxPython/demo/wxButton.py diff --git a/wxPython/demo/wxButton.py b/wxPython/demo/wxButton.py index b4ac31d997..039ff89e4b 100644 --- a/wxPython/demo/wxButton.py +++ b/wxPython/demo/wxButton.py @@ -15,12 +15,12 @@ class TestPanel(wx.Panel): self.log = log b = wx.Button(self, 10, "Default Button", (20, 20)) - self.Bind(EVT_BUTTON, self.OnClick, b) + self.Bind(wx.EVT_BUTTON, self.OnClick, b) b.SetDefault() b.SetSize(b.GetBestSize()) b = wx.Button(self, 20, "HELLO AGAIN!", (20, 80), (120, 45)) - self.Bind(EVT_BUTTON, self.OnClick, b) + self.Bind(wx.EVT_BUTTON, self.OnClick, b) b.SetToolTipString("This is a Hello button...") if 0: # a test case for catching wx.PyAssertionError