original_docstring: Renders an image with the player's score on it.
docstring: Renders an image with the player's score on it.
docstring_tokens: Renders an image with the player ' s score on it .
code: def _draw_score(self, score):
          """Renders an image with the player's score on it."""
          num = min(score, 30)
          png = Image.open(path.join(IMAGE_ROOT, f"{num}.png"))
          img = ImageTk.PhotoImage(png)
          lbl = tk.Label(self.score_frame, image=img)
          lbl.image = img
          lbl.pack(side="left", anchor="w")
code_tokens: def _draw_score ( self , score ) : num = min ( score , 30 ) png = Image . open ( path . join ( IMAGE_ROOT , f"{num}.png" ) ) img = ImageTk . PhotoImage ( png ) lbl = tk . Label ( self . score_frame , image = img ) lbl . image = img lbl . pack ( side = "left" , anchor = "w" )
short_docstring: Renders an image with the player's score on it.
short_docstring_tokens: Renders an image with the player ' s score on it .
comment: """Renders an image with the player's score on it."""