MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_click_command

Method get_click_command

tensorflow/python/debug/cli/curses_ui.py:192–206  ·  view source on GitHub ↗
(self, mouse_y)

Source from the content-addressed store, hash-verified

190 return layout
191
192 def get_click_command(self, mouse_y):
193 if self._output_num_rows <= 1:
194 return None
195 elif mouse_y == self._min_y:
196 return _SCROLL_UP_A_LINE
197 elif mouse_y == self._max_y:
198 return _SCROLL_DOWN_A_LINE
199 elif (mouse_y > self._block_y(screen_coord_sys=True) and
200 mouse_y < self._max_y):
201 return _SCROLL_DOWN
202 elif (mouse_y < self._block_y(screen_coord_sys=True) and
203 mouse_y > self._min_y):
204 return _SCROLL_UP
205 else:
206 return None
207
208
209class CursesUI(base_ui.BaseUI):

Calls 1

_block_yMethod · 0.95