简体   繁体   English

如何用PyFace发出哔哔声?

[英]How to sound a beep with PyFace?

PyFace is an Enthought library for Python that's supposed to provide toolkit-independent GUI facilities for use with other Enthought libraries. PyFace是用于Python的Enthought库,应该提供与工具包无关的GUI工具,以与其他Enthought库一起使用。

Can I make it beep? 我可以发出哔声吗? Or do I have to resort to the underlying GUI toolkit? 还是我必须诉诸于底层的GUI工具包?

No, but it will be possible in a future version of PyFace: I contributed a patch. 否,但是在PyFace的未来版本中有可能:我提供了一个补丁。

https://github.com/enthought/pyface/commit/83cef1505e7ab131a51a69e5dcdbd9f53060640e https://github.com/enthought/pyface/commit/83cef1505e7ab131a51a69e5dcdbd9f53060640e

from pyface.api import beep
beep()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM