I understand why I am getting this error, it\'s looking for my object as an argument, and receiving a string value. But I\'m confused as to what the solution would be?
T
The problem is that button is a string, a possible solution is to use getattr.
getattr
Change:
button = "self.ui."+prefix+numString
to
button = getattr(self.ui, prefix+numString)