Skip to content
Browse files

Merge pull request #35 from ptomato/master

Feature request: sound the system bell
  • Loading branch information...
2 parents 01a0090 + dca7f8c commit 83cef1505e7ab131a51a69e5dcdbd9f53060640e @rkern rkern committed Jun 26, 2012
Showing with 28 additions and 0 deletions.
  1. +1 −0 pyface/api.py
  2. +7 −0 pyface/beep.py
  3. +10 −0 pyface/ui/qt4/beep.py
  4. +10 −0 pyface/ui/wx/beep.py
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()

0 comments on commit 83cef15

Please sign in to comment.
Something went wrong with that request. Please try again.