just a beep

Fredrik Lundh fredrik at pythonware.com
Tue Sep 2 09:53:45 CEST 2003

"Leo" wrote:

> i want python to do a beep.
> in the docu i found in tkinter the method
> bell()
> but the script:
> import Tkinter
> Tkinter.bell()
> gives the error:
> AttributeError: 'module' object has no attribute 'bell'

you might find it easier to use Python if you spend some time reading
up on functions vs. methods; in the meantime, here's one way to call
the "bell" method in Tkinter:

    >>> import Tkinter
    >>> Tkinter.Tk().bell()


More information about the Python-list mailing list