(self, event)
| 233 | self.Reset() |
| 234 | |
| 235 | def on_select(self, event): |
| 236 | rs, cs = self.GetSelectedRows(), self.GetSelectedCols() |
| 237 | lt, rb = self.GetSelectionBlockTopLeft(), self.GetSelectionBlockBottomRight() |
| 238 | if len(lt)==1 and len(rb)==1: |
| 239 | return self.tps.select(range(lt[0][0],rb[0][0]+1), range(lt[0][1],rb[0][1]+1)) |
| 240 | else: self.tps.select(rs, cs, True) |
| 241 | #self.tps.select() |
| 242 | |
| 243 | def Reset(self): |
| 244 | """reset the view based on the data in the table. Call |