It seems there is a problem in 1.5.1 documentation of Lines2D. Documentatiuon mention a "visible" attribute but it do not exist. The class contain get_visible() and set_visible() but they are not documented. I hope this is the appropriate place to report documentation errors.