Of course, showing the code might help...<br><br> <a href="http://bpaste.net/show/44593/">http://bpaste.net/show/44593/</a><br><br>Thanks!<br><br>Leam<br><br><div class="gmail_quote">On Sun, Sep 9, 2012 at 10:42 AM, leam hall <span dir="ltr"><<a href="mailto:leamhall@gmail.com" target="_blank">leamhall@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm in the O'Reilly Python 2 class, so pointers to learning would be better than just answers, please. My brain is a bit slow but needs to go forward.<br>
<br>Line 16 calls line 31. Rather, it is supposed to. I'm trying to figure out why I get <br>
<br>  File "./ch8_project.py", line 31, in change_text_color<br>    self.text.tag_configure('highlightline', foreground=fg_color)<br>AttributeError: 'ch8_Project' object has no attribute 'text'<br>

<br>If line 31 starts with "self." and <br><br>  File "./ch8_project.py", line 31, in change_text_color<br>    text.tag_configure('highlightline', foreground=fg_color)<br>NameError: global name 'text' is not defined<br>

<br><br>If Line 31 does not start with "self.". I understand the second problem but not the first. <br><br>What am I missing?<br><br>Thanks!<span class="HOEnZb"><font color="#888888"><br><br>Leam<br><br clear="all">
<br>-- <br><div><a href="http://leamhall.blogspot.com/" target="_blank">Mind on a Mission</a></div>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div><a href="http://leamhall.blogspot.com/" target="_blank">Mind on a Mission</a></div><br>