equal
deleted
inserted
replaced
527 |
527 |
528 if colname == "Name": |
528 if colname == "Name": |
529 editor = wx.grid.GridCellTextEditor() |
529 editor = wx.grid.GridCellTextEditor() |
530 elif colname == "Class": |
530 elif colname == "Class": |
531 editor = wx.grid.GridCellChoiceEditor() |
531 editor = wx.grid.GridCellChoiceEditor() |
532 editor.SetParameters("input,output") |
532 editor.SetParameters("input,memory,output") |
533 elif colname == "Type": |
533 elif colname == "Type": |
534 pass |
534 pass |
535 else: |
535 else: |
536 grid.SetReadOnly(row, col, True) |
536 grid.SetReadOnly(row, col, True) |
537 |
537 |
767 num = 0 |
767 num = 0 |
768 if self.Table.GetValueByName(row, "Class") == "input": |
768 if self.Table.GetValueByName(row, "Class") == "input": |
769 dir = "%I" |
769 dir = "%I" |
770 for i in xrange(row): |
770 for i in xrange(row): |
771 if self.Table.GetValueByName(i, "Class") == "input": |
771 if self.Table.GetValueByName(i, "Class") == "input": |
|
772 num += 1 |
|
773 elif self.Table.GetValueByName(row, "Class") == "memory": |
|
774 dir = "%M" |
|
775 for i in xrange(row): |
|
776 if self.Table.GetValueByName(i, "Class") == "memory": |
772 num += 1 |
777 num += 1 |
773 else: |
778 else: |
774 dir = "%Q" |
779 dir = "%Q" |
775 for i in xrange(row): |
780 for i in xrange(row): |
776 if self.Table.GetValueByName(i, "Class") == "output": |
781 if self.Table.GetValueByName(i, "Class") == "output": |