Skip to content

Instantly share code, notes, and snippets.

@hanneskaeufler
Created February 12, 2018 20:09
Show Gist options
  • Save hanneskaeufler/7d99eb537efc4f0ace391f47602c2c3a to your computer and use it in GitHub Desktop.
Save hanneskaeufler/7d99eb537efc4f0ace391f47602c2c3a to your computer and use it in GitHub Desktop.
padding = 10
pos = (self.__from_right(badge_width), start_y + padding, self.__from_right(padding), start_y + self.__row_height() - padding)
self.draw.rectangle(pos, outline = self.BLACK)
- self.draw.text((self.__from_right(badge_width + 35), start_y + 17), self.PASSED, font = self.badge_font, fill = self.BLACK)
+ self.draw.text((self.__from_right(badge_width - 35), start_y + 17), self.PASSED, font = self.badge_font, fill = self.BLACK)
def __render_project_name(self, row):
index = row[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment