Mercurial > getan > getan
comparison getan/view.py @ 233:68fa56dacbcd
Add new get_focus_pos method to ListView
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Tue, 09 Apr 2013 19:55:53 +0200 |
parents | 8e9e894552e8 |
children | 024f3de92b2a |
comparison
equal
deleted
inserted
replaced
232:01c75612253f | 233:68fa56dacbcd |
---|---|
101 | 101 |
102 def node_in_focus(self): | 102 def node_in_focus(self): |
103 if self.rows: | 103 if self.rows: |
104 return self.listbox.get_focus()[0] | 104 return self.listbox.get_focus()[0] |
105 return None | 105 return None |
106 | |
107 def get_focus_pos(self): | |
108 return self.listbox.get_focus()[1] | |
106 | 109 |
107 def select(self): | 110 def select(self): |
108 if not self.rows: | 111 if not self.rows: |
109 return None | 112 return None |
110 node = self.node_in_focus() | 113 node = self.node_in_focus() |