Tkinter: wm_protocol() error on RedHat Linux 6.0
Fredrik Lundh
fredrik at pythonware.com
Mon Jan 17 17:03:01 EST 2000
Matt Gushee <mgushee at havenrock.com> wrote:
> The other day I released a small Tkinter application which I developed
> on a Red Hat Linux 5.2 system with Python 1.5.2 (my own build). A Red
> Hat 6.0 user has reported the following error:
>
> > ./surfnotes.py
> > Traceback (innermost last):
> > File "./surfnotes.py", line 56, in ?
> > snapp = SurfNotes()
> > File "./sngui.py", line 164, in __init__
> > self.wm_protocol('WM_DELETE_WINDOW', self.quit)
> > AttributeError: wm_protocol
>
> He has tkinter-1.5.1-10.i386.rpm.
>
> Anyone have an idea what might cause this?
pre-1.5.2 releases don't have "wm_protocol".
for backwards compatibility, use the "protocol"
alias instead.
</F>
More information about the Python-list
mailing list