Commit 761c5aba authored by Guido van Rossum's avatar Guido van Rossum

Tk 4.0 and Tcl 7.4 are now standard

parent 677dfc37
# 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 @@ def _test():
' 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',
......
This diff is collapsed.
# 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 @@ def _test():
' 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',
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment