summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-22 18:46:28 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-22 18:46:28 (GMT)
commitd9e5214c2682dd5ea7bc86366549608f926b1365 (patch)
tree25a10cb949a499ee0a33a76226659712aef410f8 /Tools
parent877d299292063ce07c5ecc3e897216731bdf4e5a (diff)
downloadcpython-d9e5214c2682dd5ea7bc86366549608f926b1365.zip
cpython-d9e5214c2682dd5ea7bc86366549608f926b1365.tar.gz
cpython-d9e5214c2682dd5ea7bc86366549608f926b1365.tar.bz2
beep => bell
deiconify(): New method
Diffstat (limited to 'Tools')
-rw-r--r--Tools/pynche/PyncheWidget.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Tools/pynche/PyncheWidget.py b/Tools/pynche/PyncheWidget.py
index fcabd24..7cbb33e 100644
--- a/Tools/pynche/PyncheWidget.py
+++ b/Tools/pynche/PyncheWidget.py
@@ -90,7 +90,7 @@ class PyncheWidget:
# now create the top level window
root = self.__root = Toplevel(tkroot, class_='Pynche', menu=menubar)
root.protocol('WM_DELETE_WINDOW',
- modal and self.__beep or self.__quit)
+ modal and self.__bell or self.__quit)
root.title('Pynche %s' % version)
root.iconname('Pynche')
# Only bind accelerators for the File->Quit menu item if running as a
@@ -116,8 +116,8 @@ class PyncheWidget:
def __quit(self, event=None):
self.__tkroot.quit()
- def __beep(self, event=None):
- self.__tkroot.beep()
+ def __bell(self, event=None):
+ self.__tkroot.bell()
def __okay(self, event=None):
self.__sb.withdraw_views()
@@ -179,3 +179,6 @@ email : bwarsaw@python.org''' % __version__)
def withdraw(self):
self.__root.withdraw()
+
+ def deiconify(self):
+ self.__root.deiconify()