stacked ={"One": lambda: self.test(1),...}
for key, value in stacked.items():
# ваш код
.connect(self.test(value)
stacked ={"One": 1,...}
for key, value in stacked.items():
# ваш код
.connect(self.create_test(value))
dev create_test(self, index):
return lambda: self.test(index)
dev test(self, index):
print(index)
%USERPROFILE%\AppData\Roaming\Python\Scripts