changeset 28:654d31983f19

primitivus: fixed misnamed method in custom widget
author Goffi <goffi@goffi.org>
date Mon, 27 Dec 2010 17:22:32 +0100
parents d8def22e429a
children 5d0e497f73a2
files frontends/primitivus/custom_widgets.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/primitivus/custom_widgets.py	Fri Aug 20 01:17:51 2010 +0800
+++ b/frontends/primitivus/custom_widgets.py	Mon Dec 27 17:22:32 2010 +0100
@@ -393,10 +393,11 @@
         self.first_display = False 
 
     def selectValue(self, value):
+        """Select the first item which has the given value"""
         self.unselectAll()
         idx = 0
         for widget in self.content:
-            if widget.getSelectedValue() == value:
+            if widget.getValue() == value:
                 widget.setState(True)
                 self.list_box.set_focus(idx)
                 return