original_docstring: Renders images and places them on the canvas.
docstring: Renders images and places them on the canvas.
docstring_tokens: Renders images and places them on the canvas .
code: def _draw_cards(self):
          """Renders images and places them on the canvas."""
          row = 0
          col = 0
  
          count = len(self.cards)
          # this should restrict things to two lines in most cases
          line_break_col = 8 if count < 17 else 12
  
          for card in self.cards:
              resized = card.image()
              resized.thumbnail((65, 65), Image.ANTIALIAS)
  
              image = ImageTk.PhotoImage(resized)
              lbl = tk.Label(self.card_frame, image=image)
              lbl.image = image
              lbl.grid(row=row, column=col, sticky="we")
  
              # split over two lines if holding more than 14 cards
              if count > 14 and col >= line_break_col:
                  col = 0
                  row += 1
              else:
                  col += 1
code_tokens: def _draw_cards ( self ) : row = 0 col = 0 count = len ( self . cards ) line_break_col = 8 if count < 17 else 12 for card in self . cards : resized = card . image ( ) resized . thumbnail ( ( 65 , 65 ) , Image . ANTIALIAS ) image = ImageTk . PhotoImage ( resized ) lbl = tk . Label ( self . card_frame , image = image ) lbl . image = image lbl . grid ( row = row , column = col , sticky = "we" ) if count > 14 and col >= line_break_col : col = 0 row += 1 else : col += 1
short_docstring: Renders images and places them on the canvas.
short_docstring_tokens: Renders images and places them on the canvas .
comment: """Renders images and places them on the canvas."""$SEP$# this should restrict things to two lines in most cases$SEP$# split over two lines if holding more than 14 cards