def draw_greytrack(self, track):
    ' draw_greytrack(self)\n\n            o track     Track object\n\n            Put in a grey background to the current track, if the track\n            specifies that we should\n        '
    greytrack_bgs = []
    greytrack_labels = []
    if (not track.greytrack):
        return ([], [])
    (btm, ctr, top) = self.track_radii[self.current_track_level]
    if (self.sweep < 1):
        bg = self._draw_arc(btm, top, 0, ((2 * pi) * self.sweep), colors.Color(0.96, 0.96, 0.96))
    else:
        bg = Circle(self.xcenter, self.ycenter, ctr, strokeColor=colors.Color(0.96, 0.96, 0.96), fillColor=None, strokeWidth=(top - btm))
    greytrack_bgs.append(bg)
    if track.greytrack_labels:
        labelstep = (self.length // track.greytrack_labels)
        for pos in range(self.start, self.end, labelstep):
            label = String(0, 0, track.name, fontName=track.greytrack_font, fontSize=track.greytrack_fontsize, fillColor=track.greytrack_fontcolor)
            (theta, costheta, sintheta) = self.canvas_angle(pos)
            (x, y) = ((self.xcenter + (btm * sintheta)), (self.ycenter + (btm * costheta)))
            labelgroup = Group(label)
            labelangle = (((((self.sweep * 2) * pi) * (pos - self.start)) / self.length) - (pi / 2))
            if (theta > pi):
                label.textAnchor = 'end'
                labelangle += pi
            (cosA, sinA) = (cos(labelangle), sin(labelangle))
            labelgroup.transform = (cosA, (- sinA), sinA, cosA, x, y)
            if (not ((self.length - x) <= labelstep)):
                greytrack_labels.append(labelgroup)
    return (greytrack_bgs, greytrack_labels)
draw_greytrack(self)

o track     Track object

Put in a grey background to the current track, if the track
specifies that we should
def draw_greytrack(self, track):
    ' draw_greytrack(self)\n\n            o track     Track object\n\n            Put in a grey background to the current track, if the track\n            specifies that we should\n        '
    greytrack_bgs = []
    greytrack_labels = []
    if (not track.greytrack):
        return ([], [])
    (btm, ctr, top) = self.track_radii[self.current_track_level]
    if (self.sweep < 1):
        bg = self._draw_arc(btm, top, 0, ((2 * pi) * self.sweep), colors.Color(0.96, 0.96, 0.96))
    else:
        bg = Circle(self.xcenter, self.ycenter, ctr, strokeColor=colors.Color(0.96, 0.96, 0.96), fillColor=None, strokeWidth=(top - btm))
    greytrack_bgs.append(bg)
    if track.greytrack_labels:
        labelstep = (self.length // track.greytrack_labels)
        for pos in range(self.start, self.end, labelstep):
            label = String(0, 0, track.name, fontName=track.greytrack_font, fontSize=track.greytrack_fontsize, fillColor=track.greytrack_fontcolor)
            (theta, costheta, sintheta) = self.canvas_angle(pos)
            (x, y) = ((self.xcenter + (btm * sintheta)), (self.ycenter + (btm * costheta)))
            labelgroup = Group(label)
            labelangle = (((((self.sweep * 2) * pi) * (pos - self.start)) / self.length) - (pi / 2))
            if (theta > pi):
                label.textAnchor = 'end'
                labelangle += pi
            (cosA, sinA) = (cos(labelangle), sin(labelangle))
            labelgroup.transform = (cosA, (- sinA), sinA, cosA, x, y)
            if (not ((self.length - x) <= labelstep)):
                greytrack_labels.append(labelgroup)
    return (greytrack_bgs, greytrack_labels)