diff --git a/direct/src/tkwidgets/VectorWidgets.py b/direct/src/tkwidgets/VectorWidgets.py index e5cb9a8760..5112bfa021 100644 --- a/direct/src/tkwidgets/VectorWidgets.py +++ b/direct/src/tkwidgets/VectorWidgets.py @@ -170,6 +170,8 @@ class VectorEntry(Pmw.MegaWidget): return self._value[index] def set(self, value, fCommand = 1): + if type(value) == type(1): + value = [value] * self['dim'] for i in range(self['dim']): self._value[i] = value[i] self.variableList[i].set(self.entryFormat % value[i])