mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Updated to use column instead of col
This commit is contained in:
parent
e69c6b3bd6
commit
d2c4c025a8
@ -82,12 +82,12 @@ class TaskManagerWidget(PandaObject):
|
||||
self.removeButton = Button(controlsFrame, text = 'Remove Task',
|
||||
command = self.removeCurrentTask)
|
||||
#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,
|
||||
text = 'Remove Matching Tasks',
|
||||
command = self.removeMatchingTasks)
|
||||
#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.set(1)
|
||||
@ -96,14 +96,14 @@ class TaskManagerWidget(PandaObject):
|
||||
text = 'Update',
|
||||
command = self.updateTaskListBox)
|
||||
#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(
|
||||
controlsFrame,
|
||||
text = 'Dynamic Update',
|
||||
variable = self.taskMgrVerbose,
|
||||
command = self.toggleTaskMgrVerbose)
|
||||
#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
|
||||
controlsFrame.pack(fill = X)
|
||||
controlsFrame.grid_columnconfigure(0, weight = 1)
|
||||
|
@ -53,14 +53,14 @@ class Dial(Valuator):
|
||||
self._valuator.grid(rowspan = 2, columnspan = 2,
|
||||
padx = 2, pady = 2)
|
||||
if self._label:
|
||||
self._label.grid(row = 0, col = 2, sticky = EW)
|
||||
self._entry.grid(row = 1, col = 2, sticky = EW)
|
||||
self._label.grid(row = 0, column = 2, sticky = EW)
|
||||
self._entry.grid(row = 1, column = 2, sticky = EW)
|
||||
self.interior().columnconfigure(2, weight = 1)
|
||||
else:
|
||||
if self._label:
|
||||
self._label.grid(row=0,col=0, sticky = EW)
|
||||
self._entry.grid(row=0,col=1, sticky = EW)
|
||||
self._valuator.grid(row=0,col=2, padx = 2, pady = 2)
|
||||
self._label.grid(row=0,column=0, sticky = EW)
|
||||
self._entry.grid(row=0,column=1, sticky = EW)
|
||||
self._valuator.grid(row=0,column=2, padx = 2, pady = 2)
|
||||
self.interior().columnconfigure(0, weight = 1)
|
||||
|
||||
def addValuatorPropertiesToDialog(self):
|
||||
|
@ -36,9 +36,9 @@ class Floater(Valuator):
|
||||
def packValuator(self):
|
||||
# Position components
|
||||
if self._label:
|
||||
self._label.grid(row=0,col=0, sticky = EW)
|
||||
self._entry.grid(row=0,col=1, sticky = EW)
|
||||
self._valuator.grid(row=0,col=2, padx = 2, pady = 2)
|
||||
self._label.grid(row=0,column=0, sticky = EW)
|
||||
self._entry.grid(row=0,column=1, sticky = EW)
|
||||
self._valuator.grid(row=0,column=2, padx = 2, pady = 2)
|
||||
self.interior().columnconfigure(0, weight = 1)
|
||||
|
||||
|
||||
|
@ -57,16 +57,16 @@ class Slider(Valuator):
|
||||
def packValuator(self):
|
||||
if self['style'] == VALUATOR_FULL:
|
||||
if self._label:
|
||||
self._label.grid(row = 0, col = 0, sticky = EW)
|
||||
self._entry.grid(row = 0, col = 1, sticky = EW)
|
||||
self._label.grid(row = 0, column = 0, sticky = EW)
|
||||
self._entry.grid(row = 0, column = 1, sticky = EW)
|
||||
self._valuator.grid(row = 1, columnspan = 2,
|
||||
padx = 2, pady = 2, sticky = 'ew')
|
||||
self.interior().columnconfigure(0, weight = 1)
|
||||
else:
|
||||
if self._label:
|
||||
self._label.grid(row=0,col=0, sticky = EW)
|
||||
self._entry.grid(row=0,col=1, sticky = EW)
|
||||
self._valuator.grid(row=0,col=2, padx = 2, pady = 2)
|
||||
self._label.grid(row=0,column=0, sticky = EW)
|
||||
self._entry.grid(row=0,column=1, sticky = EW)
|
||||
self._valuator.grid(row=0,column=2, padx = 2, pady = 2)
|
||||
self.interior().columnconfigure(0, weight = 1)
|
||||
|
||||
def setMin(self):
|
||||
|
@ -88,11 +88,11 @@ class WidgetPropertiesDialog(Toplevel):
|
||||
helpString = propertySet.get('help', None)
|
||||
# Create label
|
||||
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
|
||||
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:
|
||||
entry.insert(0, 'None')
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user