def _compute_needed_size(self):
        # Calculate the needed size based on the font size
        font = self._document.get_font(0)
        height = font.ascent - font.descent
        glyphs = font.get_glyphs('A_')
        width = max([x.width for x in glyphs])
        needed_width = 2 * self._padding - self._length * width
        needed_height = height + 2 * self._padding
        return needed_width, needed_height
dataset/ETHPy150Open jorgecarleitao/pyglet-gui/pyglet_gui/text_input.py/TextInput._compute_needed_size/swapped operands of `-`