diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-12-31 16:03:23 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-12-31 16:03:23 (GMT) |
commit | 6655e4bc2752f1114a2e1f9a63ffd4191fa50d0d (patch) | |
tree | 94c162d82dacd500b7e59403255c8af854b38f51 /Lib/idlelib/configHelpSourceEdit.py | |
parent | 9532298c82d8384a6c469136ac87842990ec10dd (diff) | |
download | cpython-6655e4bc2752f1114a2e1f9a63ffd4191fa50d0d.zip cpython-6655e4bc2752f1114a2e1f9a63ffd4191fa50d0d.tar.gz cpython-6655e4bc2752f1114a2e1f9a63ffd4191fa50d0d.tar.bz2 |
Whitespace Normalization
Diffstat (limited to 'Lib/idlelib/configHelpSourceEdit.py')
-rw-r--r-- | Lib/idlelib/configHelpSourceEdit.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Lib/idlelib/configHelpSourceEdit.py b/Lib/idlelib/configHelpSourceEdit.py index 6ad7d51..f262ee6 100644 --- a/Lib/idlelib/configHelpSourceEdit.py +++ b/Lib/idlelib/configHelpSourceEdit.py @@ -27,7 +27,7 @@ class GetHelpSourceDialog(Toplevel): self.withdraw() #hide while setting geometry self.update_idletasks() #needs to be done here so that the winfo_reqwidth is valid - self.geometry("+%d+%d" % + self.geometry("+%d+%d" % ((parent.winfo_rootx()+((parent.winfo_width()/2) -(self.winfo_reqwidth()/2)), parent.winfo_rooty()+((parent.winfo_height()/2) @@ -63,7 +63,7 @@ class GetHelpSourceDialog(Toplevel): self.buttonCancel.grid(row=0,column=1,padx=5,pady=5) def MenuOk(self): - #simple validity check for a sensible + #simple validity check for a sensible #menu item name menuOk=1 menu=self.menu.get() @@ -80,9 +80,9 @@ class GetHelpSourceDialog(Toplevel): self.entryMenu.focus_set() menuOk=0 return menuOk - + def PathOk(self): - #simple validity check for menu file path + #simple validity check for menu file path pathOk=1 path=self.path.get() path.strip() @@ -97,13 +97,13 @@ class GetHelpSourceDialog(Toplevel): self.entryPath.focus_set() pathOk=0 return pathOk - + def Ok(self, event=None): if self.MenuOk(): if self.PathOk(): - self.result=( self.menu.get().strip(),self.path.get().strip() ) + self.result=( self.menu.get().strip(),self.path.get().strip() ) self.destroy() - + def Cancel(self, event=None): self.result=None self.destroy() @@ -117,5 +117,3 @@ if __name__ == '__main__': print dlg.result Button(root,text='Dialog',command=run).pack() root.mainloop() - - |