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
c2abcb1a
Commit
c2abcb1a
authored
Jun 16, 2003
by
Kurt B. Kaiser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ':' after IDLE version, fix spacing on a couple of lines I missed
parent
ea0168b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Lib/idlelib/aboutDialog.py
Lib/idlelib/aboutDialog.py
+5
-4
No files found.
Lib/idlelib/aboutDialog.py
View file @
c2abcb1a
...
@@ -54,7 +54,8 @@ class AboutDialog(Toplevel):
...
@@ -54,7 +54,8 @@ class AboutDialog(Toplevel):
labelDesc
.
grid
(
row
=
2
,
column
=
0
,
sticky
=
W
,
columnspan
=
3
,
padx
=
10
,
pady
=
5
)
labelDesc
.
grid
(
row
=
2
,
column
=
0
,
sticky
=
W
,
columnspan
=
3
,
padx
=
10
,
pady
=
5
)
labelEmail
=
Label
(
frameBg
,
text
=
'email: idle-dev@python.org'
,
labelEmail
=
Label
(
frameBg
,
text
=
'email: idle-dev@python.org'
,
justify
=
LEFT
,
fg
=
self
.
fg
,
bg
=
self
.
bg
)
justify
=
LEFT
,
fg
=
self
.
fg
,
bg
=
self
.
bg
)
labelEmail
.
grid
(
row
=
6
,
column
=
0
,
columnspan
=
2
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
labelEmail
.
grid
(
row
=
6
,
column
=
0
,
columnspan
=
2
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
labelWWW
=
Label
(
frameBg
,
text
=
'www: http://www.python.org/idle/'
,
labelWWW
=
Label
(
frameBg
,
text
=
'www: http://www.python.org/idle/'
,
justify
=
LEFT
,
fg
=
self
.
fg
,
bg
=
self
.
bg
)
justify
=
LEFT
,
fg
=
self
.
fg
,
bg
=
self
.
bg
)
labelWWW
.
grid
(
row
=
7
,
column
=
0
,
columnspan
=
2
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
labelWWW
.
grid
(
row
=
7
,
column
=
0
,
columnspan
=
2
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
...
@@ -90,7 +91,7 @@ class AboutDialog(Toplevel):
...
@@ -90,7 +91,7 @@ class AboutDialog(Toplevel):
Frame
(
frameBg
,
borderwidth
=
1
,
relief
=
SUNKEN
,
Frame
(
frameBg
,
borderwidth
=
1
,
relief
=
SUNKEN
,
height
=
2
,
bg
=
self
.
bg
).
grid
(
row
=
11
,
column
=
0
,
sticky
=
EW
,
height
=
2
,
bg
=
self
.
bg
).
grid
(
row
=
11
,
column
=
0
,
sticky
=
EW
,
columnspan
=
3
,
padx
=
5
,
pady
=
5
)
columnspan
=
3
,
padx
=
5
,
pady
=
5
)
idle_v
=
Label
(
frameBg
,
text
=
'IDLE version '
+
idlever
.
IDLE_VERSION
,
idle_v
=
Label
(
frameBg
,
text
=
'IDLE version
:
'
+
idlever
.
IDLE_VERSION
,
fg
=
self
.
fg
,
bg
=
self
.
bg
)
fg
=
self
.
fg
,
bg
=
self
.
bg
)
idle_v
.
grid
(
row
=
12
,
column
=
0
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
idle_v
.
grid
(
row
=
12
,
column
=
0
,
sticky
=
W
,
padx
=
10
,
pady
=
0
)
idle_button_f
=
Frame
(
frameBg
,
bg
=
self
.
bg
)
idle_button_f
=
Frame
(
frameBg
,
bg
=
self
.
bg
)
...
@@ -132,7 +133,7 @@ class AboutDialog(Toplevel):
...
@@ -132,7 +133,7 @@ class AboutDialog(Toplevel):
textView
.
TextViewer
(
self
,
title
,
None
,
data
)
textView
.
TextViewer
(
self
,
title
,
None
,
data
)
def
ViewFile
(
self
,
viewTitle
,
viewFile
,
encoding
=
None
):
def
ViewFile
(
self
,
viewTitle
,
viewFile
,
encoding
=
None
):
fn
=
os
.
path
.
join
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
)),
viewFile
)
fn
=
os
.
path
.
join
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
)),
viewFile
)
if
encoding
:
if
encoding
:
import
codecs
import
codecs
try
:
try
:
...
@@ -156,6 +157,6 @@ if __name__ == '__main__':
...
@@ -156,6 +157,6 @@ if __name__ == '__main__':
root
=
Tk
()
root
=
Tk
()
def
run
():
def
run
():
import
aboutDialog
import
aboutDialog
aboutDialog
.
AboutDialog
(
root
,
'About'
)
aboutDialog
.
AboutDialog
(
root
,
'About'
)
Button
(
root
,
text
=
'Dialog'
,
command
=
run
).
pack
()
Button
(
root
,
text
=
'Dialog'
,
command
=
run
).
pack
()
root
.
mainloop
()
root
.
mainloop
()
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