Exemplo n.º 1
0
 def get_column_definition_width(self, renderer: RenderingEngine,
                                 board: Board, column: int) -> int:
     definition = board.get_definition('column', column)
     definition_str = self._definition_as_str(definition)
     return renderer.get_text_width(definition_str, render_horizontal=False)
Exemplo n.º 2
0
 def get_row_definition_width(self, renderer: RenderingEngine, board: Board,
                              row: int) -> int:
     definition = board.get_definition('row', row)
     definition_str = self._definition_as_str(definition)
     return renderer.get_text_width(definition_str)