Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #35 from ptomato/master

Feature request: sound the system bell
  • Loading branch information...
commit 83cef1505e7ab131a51a69e5dcdbd9f53060640e 2 parents 01a0090 + dca7f8c
@rkern rkern authored
View
1  pyface/api.py
@@ -15,6 +15,7 @@
from about_dialog import AboutDialog
from application_window import ApplicationWindow
+from beep import beep
from clipboard import clipboard, Clipboard
from confirmation_dialog import confirm, ConfirmationDialog
from constant import OK, CANCEL, YES, NO
View
7 pyface/beep.py
@@ -0,0 +1,7 @@
+# Copyright 2012 Philip Chimento
+
+"""Sound the system bell."""
+
+# Import the toolkit-specific version
+from toolkit import toolkit_object
+beep = toolkit_object('beep:beep')
View
10 pyface/ui/qt4/beep.py
@@ -0,0 +1,10 @@
+# Copyright 2012 Philip Chimento
+
+"""Sound the system bell, Qt implementation."""
+
+from pyface.qt import QtGui
+
+
+def beep():
+ """Sound the system bell."""
+ QtGui.QApplication.beep()
View
10 pyface/ui/wx/beep.py
@@ -0,0 +1,10 @@
+# Copyright 2012 Philip Chimento
+
+"""Sound the system bell, Wx implementation."""
+
+import wx
+
+
+def beep():
+ """Sound the system bell."""
+ wx.Bell()
Please sign in to comment.
Something went wrong with that request. Please try again.