Last active
February 12, 2018 20:04
-
-
Save hanneskaeufler/79395e87ed151bf37df47197495d6ac2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def __render_row(self, row): | |
self.__render_project_name(row) | |
+ self.__render_project_status(row) | |
+ | |
+ def __render_project_status(self, row): | |
+ start_y = (row[0] + 1) * self.__row_height() | |
+ badge_width = 150 | |
+ 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) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment