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
8c1ab14a
Commit
8c1ab14a
authored
Nov 21, 2001
by
Steven M. Gava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for redundant empty parent window when invoked from idle shell window
parent
3b55a891
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Lib/idlelib/aboutDialog.py
Lib/idlelib/aboutDialog.py
+3
-5
No files found.
Lib/idlelib/aboutDialog.py
View file @
8c1ab14a
...
...
@@ -21,11 +21,10 @@ class AboutDialog(Toplevel):
self
.
configure
(
borderwidth
=
5
)
self
.
geometry
(
"+%d+%d"
%
(
parent
.
winfo_rootx
()
+
30
,
parent
.
winfo_rooty
()
+
30
))
#elguavas - config placeholders til config stuff completed
self
.
bg
=
"#555555"
self
.
bg
=
"#777777"
self
.
fg
=
"#ffffff"
#no ugly bold default font on *nix
font
=
tkFont
.
Font
(
self
,
Label
().
cget
(
'font'
))
font
=
tkFont
.
Font
(
self
,
Label
(
self
).
cget
(
'font'
))
if
os
.
name
==
'posix'
:
font
.
config
(
weight
=
NORMAL
)
self
.
textFont
=
font
...
...
@@ -39,8 +38,7 @@ class AboutDialog(Toplevel):
self
.
buttonOk
.
focus_set
()
#key bindings for this dialog
self
.
bind
(
'<Alt-c>'
,
self
.
CreditsButtonBinding
)
#credits button
#self.bind('<Alt-l>',self.LicenseButtonBinding) #license button
self
.
bind
(
'<Alt-r>'
,
self
.
LicenseButtonBinding
)
#readme button
self
.
bind
(
'<Alt-l>'
,
self
.
LicenseButtonBinding
)
#license button
self
.
bind
(
'<Return>'
,
self
.
Ok
)
#dismiss dialog
self
.
bind
(
'<Escape>'
,
self
.
Ok
)
#dismiss dialog
self
.
wait_window
()
...
...
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