self.connect(self.table, QtCore.SIGNAL('cellChanged (int, int)'), lambda row = 1: self.slot_cellChange(row)) def slot_cellChange(self, row): lit = self.field[row] if lit == 'Stock': it = self.table.item(row, 1) self.table.setItem(row, 1, QtGui.QTableWidgetItem(format(float(str(it.text())), ".3f")))
Вывод:
Traceback (most recent call last):
File “/home/serbis/Prog/python/b3/sources/createa/table.py”, line 28, in <lambda>
self.connect(self.table, QtCore.SIGNAL('cellChanged (int, int)'), lambda row = 1: self.slot_cellChange(row))
RuntimeError
Error in sys.excepthook:
Traceback (most recent call last):
File “/usr/lib/python2.6/dist-packages/apport_python_hook.py”, line 44, in apport_excepthook
if exc_type in (KeyboardInterrupt, ):
RuntimeError: maximum recursion depth exceeded in cmp
Original exception was:
Traceback (most recent call last):
File “/home/serbis/Prog/python/b3/sources/createa/table.py”, line 28, in <lambda>
self.connect(self.table, QtCore.SIGNAL('cellChanged (int, int)'), lambda row = 1: self.slot_cellChange(row))
RuntimeError: maximum recursion depth exceeded