diff options
author | Steven M. Gava <elguavas@python.net> | 2002-02-11 03:45:22 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2002-02-11 03:45:22 (GMT) |
commit | e28ee754b0749b2c4d1d6eb5f040dd3c8b01154a (patch) | |
tree | 469763cc3c1af3c23041d3e6d7b23c605221ed72 /Lib/idlelib/keybindingDialog.py | |
parent | 9f25e67dd7cf1f7624421b420f117cf5478dcc39 (diff) | |
download | cpython-e28ee754b0749b2c4d1d6eb5f040dd3c8b01154a.zip cpython-e28ee754b0749b2c4d1d6eb5f040dd3c8b01154a.tar.gz cpython-e28ee754b0749b2c4d1d6eb5f040dd3c8b01154a.tar.bz2 |
improvement to keybinding re-use check
Diffstat (limited to 'Lib/idlelib/keybindingDialog.py')
-rw-r--r-- | Lib/idlelib/keybindingDialog.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Lib/idlelib/keybindingDialog.py b/Lib/idlelib/keybindingDialog.py index d226a99..3b1ddba 100644 --- a/Lib/idlelib/keybindingDialog.py +++ b/Lib/idlelib/keybindingDialog.py @@ -30,19 +30,10 @@ class GetKeysDialog(Toplevel): self.keyCtrl.set('') self.keyAlt=StringVar(self) self.keyAlt.set('') -# self.keyMeta=StringVar(self) -# self.keyMeta.set('') self.keyShift=StringVar(self) self.keyShift.set('') -# self.keyFinal1=StringVar(self) -# self.keyFinal1.set('') -# self.keyFinal2=StringVar(self) -# self.keyFinal2.set('') -# self.keyFn1=IntVar(self) -# self.keyFn2=IntVar(self) self.CreateWidgets() self.LoadFinalKeyList() - #self.buttonOk.focus_set() self.withdraw() #hide while setting geometry self.update_idletasks() self.geometry("+%d+%d" % @@ -91,10 +82,6 @@ class GetKeysDialog(Toplevel): command=self.BuildKeyString, text='Alt',variable=self.keyAlt,onvalue='Alt',offvalue='') checkAlt.grid(row=0,column=1,padx=2,sticky=W) -# checkMeta=Checkbutton(self.frameControlsBasic, -# command=self.BuildKeyString, -# text='Meta',variable=self.keyMeta,onvalue='Meta',offvalue='') -# checkMeta.grid(row=0,column=2,padx=2,sticky=W) checkShift=Checkbutton(self.frameControlsBasic, command=self.BuildKeyString, text='Shift',variable=self.keyShift,onvalue='Shift',offvalue='') @@ -102,21 +89,16 @@ class GetKeysDialog(Toplevel): labelFnAdvice=Label(self.frameControlsBasic,justify=LEFT, text="Select the desired modifier\n"+ "keys above, and final key\n"+ -# "keys above, and final key(s)\n"+ "from the list on the right.") labelFnAdvice.grid(row=1,column=0,columnspan=4,padx=2,sticky=W) self.listKeysFinal=Listbox(self.frameControlsBasic,width=15,height=10, selectmode=SINGLE) -# selectmode=MULTIPLE) self.listKeysFinal.bind('<ButtonRelease-1>',self.FinalKeySelected) self.listKeysFinal.grid(row=0,column=4,rowspan=4,sticky=NS) scrollKeysFinal=Scrollbar(self.frameControlsBasic,orient=VERTICAL, command=self.listKeysFinal.yview) self.listKeysFinal.config(yscrollcommand=scrollKeysFinal.set) scrollKeysFinal.grid(row=0,column=5,rowspan=4,sticky=NS) -# self.buttonAddNew=Button(self.frameControlsBasic, -# text='Accept Key Sequence',width=25,command=None) -# self.buttonAddNew.grid(row=2,column=0,columnspan=4) self.buttonClear=Button(self.frameControlsBasic, text='Clear Keys',command=self.ClearKeySeq) self.buttonClear.grid(row=2,column=0,columnspan=4) |