MCPcopy Create free account
hub / github.com/Image-Py/imagepy / on_select

Method on_select

imagepy/ui/tablewindow.py:235–241  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

selectMethod · 0.45

Tested by

no test coverage detected