just a beep

Leo leo.broska at NOSPAM.isys.com.au
Wed Sep 3 07:34:19 CEST 2003


thanks a lot! that's what i want: an platform independend beep!

and indeed i want to read more about functions vs methods! but my quick
browse through the docu did not show me that there is sth in beetween
Tkinter and bell...

cheers, leo
"Fredrik Lundh" <fredrik at pythonware.com> wrote in message
news:mailman.1062489605.3888.python-list at python.org...
> "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()
>
> </F>
>
>
>
>






More information about the Python-list mailing list