diff options
author | Steven M. Gava <elguavas@python.net> | 2001-11-21 05:58:24 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2001-11-21 05:58:24 (GMT) |
commit | 8c1ab14adac10799dc3defcb50f3976c74e85bbf (patch) | |
tree | 6fb3374adae515ee8a64897ac829c3aab7c28db3 /Lib | |
parent | 3b55a891a197212b34b0c077f72cb3af752468ec (diff) | |
download | cpython-8c1ab14adac10799dc3defcb50f3976c74e85bbf.zip cpython-8c1ab14adac10799dc3defcb50f3976c74e85bbf.tar.gz cpython-8c1ab14adac10799dc3defcb50f3976c74e85bbf.tar.bz2 |
fix for redundant empty parent window when invoked from idle shell window
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/aboutDialog.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/idlelib/aboutDialog.py b/Lib/idlelib/aboutDialog.py index 9db917f..25443ae 100644 --- a/Lib/idlelib/aboutDialog.py +++ b/Lib/idlelib/aboutDialog.py @@ -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() |