(self, ips, x, y, btn, **key)
| 74 | ips.update() |
| 75 | |
| 76 | def mouse_move(self, ips, x, y, btn, **key): |
| 77 | if ips.roi==None:return |
| 78 | lim = 5.0/key['canvas'].get_scale() |
| 79 | if btn==None: |
| 80 | self.cursor = wx.CURSOR_CROSS |
| 81 | if ips.roi.snap(x, y, lim)!=None: |
| 82 | self.cursor = wx.CURSOR_HAND |
| 83 | elif btn==1: |
| 84 | if self.curobj: ips.roi.draged(self.odx, self.ody, x, y, self.curobj) |
| 85 | ips.update() |
| 86 | self.odx, self.ody = x, y |
| 87 | |
| 88 | def mouse_wheel(self, ips, x, y, d, **key): |
| 89 | pass |