MCPcopy Index your code
hub / github.com/geekcomputers/Python / draw

Method draw

blackJackGUI.py:53–64  ·  view source on GitHub ↗
(self, canvas, pos)

Source from the content-addressed store, hash-verified

51 return self.rank
52
53 def draw(self, canvas, pos):
54 card_loc = (
55 CARD_CENTER[0] + CARD_SIZE[0] * RANKS.index(self.rank),
56 CARD_CENTER[1] + CARD_SIZE[1] * SUITS.index(self.suit),
57 )
58 canvas.draw_image(
59 card_images,
60 card_loc,
61 CARD_SIZE,
62 [pos[0] + CARD_CENTER[0], pos[1] + CARD_CENTER[1]],
63 CARD_SIZE,
64 )
65
66
67def string_list_join(string, string_list):

Callers 3

drawMethod · 0.45
drawFunction · 0.45
game_o_life.pyFile · 0.45

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected