diff Lib/tkinter/Dialog.py @ 2830:bd79cd768ff8 legacy-trunk

Tk 4.0 and Tcl 7.4 are now standard
author Guido van Rossum <guido@python.org>
date Fri, 14 Jul 1995 15:29:10 +0000
parents 9d4add42ee22
children 51c9cfff31f3
line wrap: on
line diff
--- a/Lib/tkinter/Dialog.py	Fri Jul 14 15:28:00 1995 +0000
+++ b/Lib/tkinter/Dialog.py	Fri Jul 14 15:29:10 1995 +0000
@@ -1,8 +1,16 @@
 # Dialog.py -- Tkinter interface to the tk_dialog script.
+
 from Tkinter import *
 
+if TkVersion == 3.6:
+	DIALOG_ICON = 'warning'
+else:
+	DIALOG_ICON = 'questhead'
+
+
 class Dialog(Widget):
 	def __init__(self, master=None, cnf={}):
+		self.widgetName = '__dialog__'
 		Widget._setup(self, master, cnf)
 		self.num = self.tk.getint(
 			apply(self.tk.call,
@@ -21,7 +29,7 @@
 			  ' since the last time it was saved.'
 			  ' Do you want to save it before'
 			  ' exiting the application.',
-			  'bitmap': 'warning',
+			  'bitmap': DIALOG_ICON,
 			  'default': 0,
 			  'strings': ('Save File', 
 				      'Discard Changes',