I’m working on making a bind event on a button refer to a function, however i get the error explained in the title.
I already have another bind event working and coded, and as far as i can tell there is zero difference between the two syntactically.
http://dpaste.com/1EVJ6G2
So, you can see that the def updateList is indented the same as def Generate. It also has the same parameters and the same bind event syntax, with the exception that one is a radio button and the other is a button. What am i doing wrong?
You are trying to bind the event creating the
control.
···
On 20/06/14 18:09, Ben Carson wrote:
I'm working on making a bind event on a button refer to a
function, however i get the error explained in the title.
I already have another bind event working and coded, and as
far as i can tell there is zero difference between the two
syntactically.
http://dpaste.com/1EVJ6G2
So, you can see that the def updateList is indented the
same as def Generate. It also has the same parameters and the
same bind event syntax, with the exception that one is a radio
button and the other is a button. What am i doing wrong?
–
You received this message because you are subscribed to the Google
Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
before
self.go.Bind(wx.EVT_BUTTON, self.Generate)
self.go = wx.Button(self,-1, label = 'Go!', pos = (110, 325
))
I think that you may also be mixing tabs and spaces for your indentation. Use spaces only.