Update interval controls jump to start/end

This commit is contained in:
Mark Mine 2005-08-16 21:08:49 +00:00
parent 9dc875c80d
commit bb63ebad79

View File

@ -397,12 +397,12 @@ class Interval(DirectObject):
bf = Frame(outerFrame) bf = Frame(outerFrame)
# Jump to start and end # Jump to start and end
def toStart(s=self, es=es): def toStart(s=self, es=es):
s.pause() s.clearToInitial()
s.setT(0.0) es.set(0, fCommand = 0)
s.pause()
def toEnd(s=self): def toEnd(s=self):
s.pause() s.pause()
s.setT(s.getDuration()) s.setT(s.getDuration())
es.set(s.getDuration(), fCommand = 0)
s.pause() s.pause()
jumpToStart = Button(bf, text = '<<', command = toStart) jumpToStart = Button(bf, text = '<<', command = toStart)
# Stop/play buttons # Stop/play buttons