I'm using the grid widget with an underlying GridTableBase and trying to implement a "Find" button which would cause the current cursor position to go to the next matching cell. I'm wondering if there's an easy way to do it? I'm playing with the Grid.select_block_row(), Grid.set_grid_cursor() and Grid.scroll() methods, but the results are a bit erratic. Is there a better way to do this than using Grid.move_cursor_down/right? Thanks, Norbert
on 2012-05-22 23:29
on 2012-05-24 17:27
It took a bit of time and experimenting, but this seems to work, for anyone else who's maybe run into the same issues. Here's the code I came up with for scrolling to a grid position given a cell row and column. I hope someone finds it useful. Norbert
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.