Logo Search packages:      
Sourcecode: jokosher version File versions  Download package

def TimeLine::TimeLine::OnDraw (   self,
  widget,
  event 
)

Fires off the drawing operation. 

Definition at line 51 of file TimeLine.py.

00051                                      :
            """ Fires off the drawing operation. """
            
            if self.savedLine == None:
                  self.DrawLine(widget)
            if self.project.transport.RedrawTimeLine:
                  self.project.transport.RedrawTimeLine = False
                  self.DrawLine(widget)
            if self.project.RedrawTimeLine:
                  self.project.RedrawTimeLine = False
                  self.DrawLine(widget)
            d = widget.window

            gc = d.new_gc()
            
            # redraw area from saved image
            d.draw_image(gc, self.savedLine, event.area.x,
            event.area.y, event.area.x, event.area.y,
            event.area.width, event.area.height)

            # Draw play cursor position
            col = gc.get_colormap().alloc_color("#FF0000")
            gc.set_foreground(col)
             
            x = int(round((self.project.transport.position - self.project.viewStart) * self.project.viewScale))
            d.draw_line(gc, x, 0, x, self.get_allocation().height)      
      
      #_____________________________________________________________________
            
      def DrawLine(self, widget):


Generated by  Doxygen 1.6.0   Back to index