diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-13 08:47:50 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-13 08:47:50 +0100 |
| commit | cec15de1755d89963537ea0c8dacd94118ce2ff3 (patch) | |
| tree | 21614677fc7aa1876120d83fa1932ce69d10e9a5 /kconfiglib.py | |
| parent | c33fab233dae787a29963fa71546f5ae6b8f3990 (diff) | |
Add Comment.get_visibility().
Omission.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index f8bc69d..c790033 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3001,8 +3001,8 @@ class Menu(Item): # def get_visibility(self): - """Returns the visibility the menu gets from 'depends on' conditions. - This is propagated to subitems.""" + """Returns the visibility of the menu. This also affects the visibility + of subitems. See also Symbol.get_visibility().""" return self.config._eval_expr(self.dep_expr) def get_visible_if_visibility(self): @@ -3409,6 +3409,11 @@ class Comment(Item): # Public interface # + def get_visibility(self): + """Returns the visibility of the comment. See also + Symbol.get_visibility().""" + return self.config._eval_expr(self.dep_expr) + def get_text(self): """Returns the text of the comment.""" return self.text |
