def pause_segment( self ): self.pause = 1 dobj.notify( 1 ) if self.keepalive: self.idle_id = self.s.after( timeout_interval, self.pause_redraw ) if self.auto: self.s.after( 500, self.simulate_spacebar )
def pause_segment(self): self.pause = 1 dobj.notify(1) if self.keepalive: self.idle_id = self.s.after(timeout_interval, self.pause_redraw) if self.auto: self.s.after(500, self.simulate_spacebar)
def play_segment( self, anim ): dobj.notify( 0 ) self.object = anim self.pdict = { 't' : 0.0 } if(self.quicktime): self.start_quicktime_time = quicktime_time else: self.start_time = time.time() self.start_t = 0.0 self.frame_count = 0 self.idle_id = self.s.after( self.timeout_interval, self.next_frame ) self.s.redraw()
def play_segment(self, anim): dobj.notify(0) self.object = anim self.pdict = {'t': 0.0} if (self.quicktime): self.start_quicktime_time = quicktime_time else: self.start_time = time.time() self.start_t = 0.0 self.frame_count = 0 self.idle_id = self.s.after(self.timeout_interval, self.next_frame) self.s.redraw()