MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / display

Method display

projects/Sudoku-Solver/SudokuGUI.py:184–192  ·  view source on GitHub ↗
(
        self,
        value,
        position,
        color,
    )

Source from the content-addressed store, hash-verified

182 pygame.draw.rect(self.window, color, self.rect, thickness)
183
184 def display(
185 self,
186 value,
187 position,
188 color,
189 ):
190 font = pygame.font.SysFont("lato", 45)
191 text = font.render(str(value), True, color)
192 self.window.blit(text, position)
193
194 def clicked(self, mousePos):
195 if self.rect.collidepoint(mousePos):

Callers 2

draw_boardMethod · 0.45
redrawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected