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
296c66e2
Commit
296c66e2
authored
May 16, 2015
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24199: Make idlever module self updating. Syop using it in aboutDialog.
parent
a0b8a508
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
Lib/idlelib/aboutDialog.py
Lib/idlelib/aboutDialog.py
+7
-8
Lib/idlelib/idlever.py
Lib/idlelib/idlever.py
+5
-1
No files found.
Lib/idlelib/aboutDialog.py
View file @
296c66e2
...
...
@@ -2,12 +2,10 @@
"""
from
tkinter
import
*
import
os
import
sys
from
sys
import
version
from
tkinter
import
*
from
idlelib
import
textView
from
idlelib
import
idlever
class
AboutDialog
(
Toplevel
):
"""Modal about dialog for idle
...
...
@@ -38,6 +36,7 @@ class AboutDialog(Toplevel):
self
.
wait_window
()
def
CreateWidgets
(
self
):
release
=
version
[:
version
.
index
(
' '
)]
frameMain
=
Frame
(
self
,
borderwidth
=
2
,
relief
=
SUNKEN
)
frameButtons
=
Frame
(
self
)
frameButtons
.
pack
(
side
=
BOTTOM
,
fill
=
X
)
...
...
@@ -64,14 +63,14 @@ class AboutDialog(Toplevel):
labelEmail
.
grid
(
row
=
6
,
column
=
0
,
columnspan
=
2
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
labelWWW
=
Label
(
frameBg
,
text
=
'https://docs.python.org/'
+
sys
.
version
[:
3
]
+
'/library/idle.html'
,
version
[:
3
]
+
'/library/idle.html'
,
justify
=
LEFT
,
fg
=
self
.
fg
,
bg
=
self
.
bg
)
labelWWW
.
grid
(
row
=
7
,
column
=
0
,
columnspan
=
2
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
Frame
(
frameBg
,
borderwidth
=
1
,
relief
=
SUNKEN
,
height
=
2
,
bg
=
self
.
bg
).
grid
(
row
=
8
,
column
=
0
,
sticky
=
EW
,
columnspan
=
3
,
padx
=
5
,
pady
=
5
)
labelPythonVer
=
Label
(
frameBg
,
text
=
'Python version: '
+
\
sys
.
version
.
split
()[
0
]
,
fg
=
self
.
fg
,
bg
=
self
.
bg
)
labelPythonVer
=
Label
(
frameBg
,
text
=
'Python version: '
+
release
,
fg
=
self
.
fg
,
bg
=
self
.
bg
)
labelPythonVer
.
grid
(
row
=
9
,
column
=
0
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
tkVer
=
self
.
tk
.
call
(
'info'
,
'patchlevel'
)
labelTkVer
=
Label
(
frameBg
,
text
=
'Tk version: '
+
...
...
@@ -94,7 +93,7 @@ class AboutDialog(Toplevel):
Frame
(
frameBg
,
borderwidth
=
1
,
relief
=
SUNKEN
,
height
=
2
,
bg
=
self
.
bg
).
grid
(
row
=
11
,
column
=
0
,
sticky
=
EW
,
columnspan
=
3
,
padx
=
5
,
pady
=
5
)
idle_v
=
Label
(
frameBg
,
text
=
'IDLE version: '
+
idlever
.
IDLE_VERSION
,
idle_v
=
Label
(
frameBg
,
text
=
'IDLE version: '
+
release
,
fg
=
self
.
fg
,
bg
=
self
.
bg
)
idle_v
.
grid
(
row
=
12
,
column
=
0
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
idle_button_f
=
Frame
(
frameBg
,
bg
=
self
.
bg
)
...
...
Lib/idlelib/idlever.py
View file @
296c66e2
IDLE_VERSION
=
"3.4.3"
"""Unused by Idle: there is no separate Idle version anymore.
Kept only for possible existing extension use."""
from
sys
import
version
IDLE_VERSION
=
version
[:
version
.
index
(
' '
)]
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