Updated to use column instead of col

This commit is contained in:
Mark Mine 2003-08-01 16:59:12 +00:00
parent e69c6b3bd6
commit d2c4c025a8
5 changed files with 19 additions and 19 deletions

View File

@ -82,12 +82,12 @@ class TaskManagerWidget(PandaObject):
self.removeButton = Button(controlsFrame, text = 'Remove Task', self.removeButton = Button(controlsFrame, text = 'Remove Task',
command = self.removeCurrentTask) command = self.removeCurrentTask)
#self.removeButton.pack(expand = 1, fill = X, side = LEFT) #self.removeButton.pack(expand = 1, fill = X, side = LEFT)
self.removeButton.grid(row = 0, col = 0, sticky = EW) self.removeButton.grid(row = 0, column = 0, sticky = EW)
self.removeMatchingButton = Button(controlsFrame, self.removeMatchingButton = Button(controlsFrame,
text = 'Remove Matching Tasks', text = 'Remove Matching Tasks',
command = self.removeMatchingTasks) command = self.removeMatchingTasks)
#self.removeMatchingButton.pack(expand = 1, fill = X, side = LEFT) #self.removeMatchingButton.pack(expand = 1, fill = X, side = LEFT)
self.removeMatchingButton.grid(row = 0, col = 1, sticky = EW) self.removeMatchingButton.grid(row = 0, column = 1, sticky = EW)
self.taskMgrVerbose = IntVar() self.taskMgrVerbose = IntVar()
self.taskMgrVerbose.set(1) self.taskMgrVerbose.set(1)
@ -96,14 +96,14 @@ class TaskManagerWidget(PandaObject):
text = 'Update', text = 'Update',
command = self.updateTaskListBox) command = self.updateTaskListBox)
#self.update.pack(expand = 1, fill = X, side = LEFT) #self.update.pack(expand = 1, fill = X, side = LEFT)
self.update.grid(row = 1, col = 0, sticky = EW) self.update.grid(row = 1, column = 0, sticky = EW)
self.dynamicUpdate = Checkbutton( self.dynamicUpdate = Checkbutton(
controlsFrame, controlsFrame,
text = 'Dynamic Update', text = 'Dynamic Update',
variable = self.taskMgrVerbose, variable = self.taskMgrVerbose,
command = self.toggleTaskMgrVerbose) command = self.toggleTaskMgrVerbose)
#self.dynamicUpdate.pack(expand = 1, fill = X, side = LEFT) #self.dynamicUpdate.pack(expand = 1, fill = X, side = LEFT)
self.dynamicUpdate.grid(row = 1, col = 1, sticky = EW) self.dynamicUpdate.grid(row = 1, column = 1, sticky = EW)
# Pack frames # Pack frames
controlsFrame.pack(fill = X) controlsFrame.pack(fill = X)
controlsFrame.grid_columnconfigure(0, weight = 1) controlsFrame.grid_columnconfigure(0, weight = 1)

View File

@ -53,14 +53,14 @@ class Dial(Valuator):
self._valuator.grid(rowspan = 2, columnspan = 2, self._valuator.grid(rowspan = 2, columnspan = 2,
padx = 2, pady = 2) padx = 2, pady = 2)
if self._label: if self._label:
self._label.grid(row = 0, col = 2, sticky = EW) self._label.grid(row = 0, column = 2, sticky = EW)
self._entry.grid(row = 1, col = 2, sticky = EW) self._entry.grid(row = 1, column = 2, sticky = EW)
self.interior().columnconfigure(2, weight = 1) self.interior().columnconfigure(2, weight = 1)
else: else:
if self._label: if self._label:
self._label.grid(row=0,col=0, sticky = EW) self._label.grid(row=0,column=0, sticky = EW)
self._entry.grid(row=0,col=1, sticky = EW) self._entry.grid(row=0,column=1, sticky = EW)
self._valuator.grid(row=0,col=2, padx = 2, pady = 2) self._valuator.grid(row=0,column=2, padx = 2, pady = 2)
self.interior().columnconfigure(0, weight = 1) self.interior().columnconfigure(0, weight = 1)
def addValuatorPropertiesToDialog(self): def addValuatorPropertiesToDialog(self):

View File

@ -36,9 +36,9 @@ class Floater(Valuator):
def packValuator(self): def packValuator(self):
# Position components # Position components
if self._label: if self._label:
self._label.grid(row=0,col=0, sticky = EW) self._label.grid(row=0,column=0, sticky = EW)
self._entry.grid(row=0,col=1, sticky = EW) self._entry.grid(row=0,column=1, sticky = EW)
self._valuator.grid(row=0,col=2, padx = 2, pady = 2) self._valuator.grid(row=0,column=2, padx = 2, pady = 2)
self.interior().columnconfigure(0, weight = 1) self.interior().columnconfigure(0, weight = 1)

View File

@ -57,16 +57,16 @@ class Slider(Valuator):
def packValuator(self): def packValuator(self):
if self['style'] == VALUATOR_FULL: if self['style'] == VALUATOR_FULL:
if self._label: if self._label:
self._label.grid(row = 0, col = 0, sticky = EW) self._label.grid(row = 0, column = 0, sticky = EW)
self._entry.grid(row = 0, col = 1, sticky = EW) self._entry.grid(row = 0, column = 1, sticky = EW)
self._valuator.grid(row = 1, columnspan = 2, self._valuator.grid(row = 1, columnspan = 2,
padx = 2, pady = 2, sticky = 'ew') padx = 2, pady = 2, sticky = 'ew')
self.interior().columnconfigure(0, weight = 1) self.interior().columnconfigure(0, weight = 1)
else: else:
if self._label: if self._label:
self._label.grid(row=0,col=0, sticky = EW) self._label.grid(row=0,column=0, sticky = EW)
self._entry.grid(row=0,col=1, sticky = EW) self._entry.grid(row=0,column=1, sticky = EW)
self._valuator.grid(row=0,col=2, padx = 2, pady = 2) self._valuator.grid(row=0,column=2, padx = 2, pady = 2)
self.interior().columnconfigure(0, weight = 1) self.interior().columnconfigure(0, weight = 1)
def setMin(self): def setMin(self):

View File

@ -88,11 +88,11 @@ class WidgetPropertiesDialog(Toplevel):
helpString = propertySet.get('help', None) helpString = propertySet.get('help', None)
# Create label # Create label
label = Label(master, text=property, justify=LEFT) label = Label(master, text=property, justify=LEFT)
label.grid(row=count, col = 0, padx=5, sticky=W) label.grid(row=count, column = 0, padx=5, sticky=W)
# Create entry # Create entry
entry = Pmw.EntryField(master, entry_justify = 'right') entry = Pmw.EntryField(master, entry_justify = 'right')
entry.grid(row=count, col = 1, padx=5, sticky=W+E) entry.grid(row=count, column = 1, padx=5, sticky=W+E)
if initialvalue is None: if initialvalue is None:
entry.insert(0, 'None') entry.insert(0, 'None')
else: else: