Mercurial > libervia-backend
comparison frontends/primitivus/custom_widgets.py @ 215:370f387a43c0
primitivus: fixed misnamed method in custom widget
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 Dec 2010 17:22:32 +0100 |
parents | 92e4ddd580ae |
children |
comparison
equal
deleted
inserted
replaced
214:e178e8f6d13a | 215:370f387a43c0 |
---|---|
391 self._set_w(display_widget) | 391 self._set_w(display_widget) |
392 self._emit('change') | 392 self._emit('change') |
393 self.first_display = False | 393 self.first_display = False |
394 | 394 |
395 def selectValue(self, value): | 395 def selectValue(self, value): |
396 """Select the first item which has the given value""" | |
396 self.unselectAll() | 397 self.unselectAll() |
397 idx = 0 | 398 idx = 0 |
398 for widget in self.content: | 399 for widget in self.content: |
399 if widget.getSelectedValue() == value: | 400 if widget.getValue() == value: |
400 widget.setState(True) | 401 widget.setState(True) |
401 self.list_box.set_focus(idx) | 402 self.list_box.set_focus(idx) |
402 return | 403 return |
403 idx+=1 | 404 idx+=1 |
404 | 405 |