Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/i/g/igc2kmz-HEAD/igc2kmz/__init__.py   igc2kmz(Download)
    def make_analysis_style(self, color, bgcolors, rows):
        text = '<h3>$[name]</h3>$[description]' + make_table(rows, bgcolors)
        bg_color = 'ff' + ''.join(reversed(re.findall(r'..', bgcolors[1][1:])))
        balloon_style = kml.BalloonStyle(text=kml.CDATA(text), bgColor=bg_color)
        icon_style = kml.IconStyle(self.icons[0], color=color,
        self.kmz.add_roots(*self.time_mark_styles)
        #
        balloon_style = kml.BalloonStyle(text=kml.CDATA('$[description]'))
        icon_style = kml.IconStyle(kml.Icon.palette(4, 46),
                                   scale=self.icon_scales[0])
        #
        text = kml.text(kml.CDATA('<h3>$[name]</h3>$[description]'))
        balloon_style = kml.BalloonStyle(text)
        icon_style = kml.IconStyle(self.icons[0], color='ccff33ff',
                                   scale=self.icon_scales[0])
        #
        text = kml.text(kml.CDATA('<h3>$[name]</h3>$[description]'))
        balloon_style = kml.BalloonStyle(text)
        icon_style = kml.IconStyle(self.icons[0], color='ccff33ff',
                                   scale=self.icon_scales[0])
        altitude_styles = []
        for c in globals.scales.altitude.colors():
            balloon_style = kml.BalloonStyle(text='$[description]')
            icon_style = kml.IconStyle(globals.stock.icons[i], color=c,
                                       scale=globals.stock.icon_scales[i])