Method: TkTextListBox#select
- Defined in:
- ext/ae-editor/ae-editor.rb
#select(_row) ⇒ Object
599 600 601 602 603 604 605 606 607 |
# File 'ext/ae-editor/ae-editor.rb', line 599 def select(_row) self.tag_remove('selected', '1.0', 'end') _start_index = "#{_row.to_s}.0" _end_index = "#{_start_index} +1 lines linestart" self.tag_add('selected', _start_index, _end_index) self.set_insert(_start_index) self.see(_start_index) @selected = _row end |