mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Apply Nicolas Riley's Patch.
[ 634250 ] SearchDialogBase.py fix for Tk 8.4.1 SearchDialogBase refers to the grid 'col' option considered ambiguous with Python 2.2.2 and Tk 8.4.1. The correct name is 'column'.
This commit is contained in:
parent
201626e00f
commit
4fc904708b
1 changed files with 5 additions and 5 deletions
|
@ -51,18 +51,18 @@ class SearchDialogBase:
|
||||||
|
|
||||||
def make_entry(self, label, var):
|
def make_entry(self, label, var):
|
||||||
l = Label(self.top, text=label)
|
l = Label(self.top, text=label)
|
||||||
l.grid(row=self.row, col=0, sticky="nw")
|
l.grid(row=self.row, column=0, sticky="nw")
|
||||||
e = Entry(self.top, textvariable=var, exportselection=0)
|
e = Entry(self.top, textvariable=var, exportselection=0)
|
||||||
e.grid(row=self.row, col=1, sticky="nwe")
|
e.grid(row=self.row, column=1, sticky="nwe")
|
||||||
self.row = self.row + 1
|
self.row = self.row + 1
|
||||||
return e
|
return e
|
||||||
|
|
||||||
def make_frame(self,labeltext=None):
|
def make_frame(self,labeltext=None):
|
||||||
if labeltext:
|
if labeltext:
|
||||||
l = Label(self.top, text=labeltext)
|
l = Label(self.top, text=labeltext)
|
||||||
l.grid(row=self.row, col=0, sticky="nw")
|
l.grid(row=self.row, column=0, sticky="nw")
|
||||||
f = Frame(self.top)
|
f = Frame(self.top)
|
||||||
f.grid(row=self.row, col=1, columnspan=1, sticky="nwe")
|
f.grid(row=self.row, column=1, columnspan=1, sticky="nwe")
|
||||||
self.row = self.row + 1
|
self.row = self.row + 1
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ class SearchDialogBase:
|
||||||
#
|
#
|
||||||
# place button frame on the right
|
# place button frame on the right
|
||||||
f = self.buttonframe = Frame(self.top)
|
f = self.buttonframe = Frame(self.top)
|
||||||
f.grid(row=0,col=2,padx=2,pady=2,ipadx=2,ipady=2)
|
f.grid(row=0,column=2,padx=2,pady=2,ipadx=2,ipady=2)
|
||||||
|
|
||||||
b = self.make_button("close", self.close)
|
b = self.make_button("close", self.close)
|
||||||
b.lower()
|
b.lower()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue