remove cursor when configElement is enabled==False
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 29 Nov 2005 22:09:07 +0000 (22:09 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 29 Nov 2005 22:09:07 +0000 (22:09 +0000)
lib/python/Components/config.py

index 7137845f7feb9cab8f38c793c3550de8af59d8ef..037b66b13c8fa8b6a9e5cd8456c81e1ecd24fcfe 100644 (file)
@@ -260,8 +260,11 @@ class configSequence:
                        num += 1
                        # only mark cursor when we are selected
                        # (this code is heavily ink optimized!)
                        num += 1
                        # only mark cursor when we are selected
                        # (this code is heavily ink optimized!)
-               return ("mtext"[1-selected:], value, [mPos])
-
+               if (self.parent.enabled == True):
+                       return ("mtext"[1-selected:], value, [mPos])
+               else:
+                       return ("text", value)
+               
 class configText:
        # used as first parameter
        # is the text of a fixed size or is the user able to extend the length of the text
 class configText:
        # used as first parameter
        # is the text of a fixed size or is the user able to extend the length of the text