if (self.mini == False): ctx.save() ctx.translate(14, 60) self.theme.render(ctx,'day-bg') #self.theme['day-bg.svg'].render_cairo(ctx) ###render the days background #print self.theme.path self.draw_text(ctx,'' german_days[weather[1]["day"][:3]] + '', 0,0, self.font.split(' ')[0], 6, self.width,pango.ALIGN_LEFT) # p_layout.set_markup('' +weather[1]["day"][:3] + '') # ctx.show_layout(p_layout) ctx.translate(24, 0) self.draw_text(ctx,'' +weather[2]["day"][:3] + '', 0,0, self.font.split(' ')[0], 6, self.width,pango.ALIGN_LEFT) ctx.translate(24, 0) self.draw_text(ctx,'' +weather[3]["day"][:3] + '', 0,0, self.font.split(' ')[0], 6, self.width,pango.ALIGN_LEFT) ctx.translate(24, 0) self.draw_text(ctx,'' +weather[4]["day"][:3] + '', 0,0, self.font.split(' ')[0], 6, self.width,pango.ALIGN_LEFT) ctx.translate(24, 0) self.draw_text(ctx,'' +weather[5]["day"][:3] + '', 0,0, self.font.split(' ')[0], 6, self.width,pango.ALIGN_LEFT) ctx.translate(24, 0) self.draw_text(ctx,'' +weather[6]["day"][:3] + '', 0,0, self.font.split(' ')[0], 6, self.width,pango.ALIGN_LEFT)