R. David Murray added the comment:

This is a question more suited to be asked on python-list or python-tutor, 
rather than a bug report.

I'll give you a clue while I'm closing the issue: in the font snippt you 
reference the font attribute when your module is imported.  In the messagebox 
snippet, you reference the messagebox attribute inside a callback which is 
*not* executed when your module is imported.  So while the file hierarchy 
structure is analogous in the two cases, your *code* is not.  When you close 
the window, you will see your messagebox attribute error when the callback is 

nosy: +r.david.murray
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
type: compile error -> behavior

Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to