Bugs item #1417598, was opened at 2006-01-29 06:16 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1417598&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: IDLE Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: snowman (snow_k2) Assigned to: Nobody/Anonymous (nobody) Summary: EditorWindow demo causes attr-error Initial Comment: Running EditorWindow.py causes next error : >>>>>>>>>> Traceback (most recent call last): File "C:\Python24\Lib\idlelib\EditorWindow.py", line 1410, in -toplevel- test() File "C:\Python24\Lib\idlelib\EditorWindow.py", line 1404, in test edit = EditorWindow(root=root, filename=filename) File "C:\Python24\Lib\idlelib\EditorWindow.py", line 190, in __init__ self.update_recent_files_list() File "C:\Python24\Lib\idlelib\EditorWindow.py", line 602, in update_recent_files_list if self.top.hasattr('instance_dict'): AttributeError: ListedToplevel instance has no attribute 'hasattr' <<<<<<< I think EditorWindow.update_recent_files_list() should check the 'instance_dict' attribute existance before accessing self.top.instance_dict.keys() in the def. if hasattr(self.top, 'instance_dict'): xxxxx xxxxx ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1417598&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com