I want to generate automatically the button-connections... but dont work:
self._ = {}
j = 0
for i in self.btn:
self._[i] = 'self._' + repr(j)
print self._[i]
self.button[i].clicked.connect(self._[i])
j += 1
should bind the button[i]
at the function _j ( def _1(self): / def _2(self): / ...
but at execute:
connect() slot argument should be a callable or a signal, not 'str'
how to fix it?