Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
761c5aba
Commit
761c5aba
authored
Jul 14, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tk 4.0 and Tcl 7.4 are now standard
parent
677dfc37
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
312 additions
and
154 deletions
+312
-154
Lib/lib-tk/Dialog.py
Lib/lib-tk/Dialog.py
+9
-1
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+147
-76
Lib/tkinter/Dialog.py
Lib/tkinter/Dialog.py
+9
-1
Lib/tkinter/Tkinter.py
Lib/tkinter/Tkinter.py
+147
-76
No files found.
Lib/lib-tk/Dialog.py
View file @
761c5aba
# 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'
,
...
...
Lib/lib-tk/Tkinter.py
View file @
761c5aba
This diff is collapsed.
Click to expand it.
Lib/tkinter/Dialog.py
View file @
761c5aba
# 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'
,
...
...
Lib/tkinter/Tkinter.py
View file @
761c5aba
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment