"fixed" image generationfor large instruction texts

This commit is contained in:
weckyy702
2021-02-09 16:59:52 +01:00
parent 45ee7012f3
commit 354733fc6d
3 changed files with 19 additions and 14 deletions

View File

@@ -32,10 +32,10 @@ class Iinstruction(metaclass=ABCMeta):
pass
def _getblkheight(self) -> float:
return cti.get_text_size(self.instruction_text)[1] + 5#padding
return cti.get_text_size(self.instruction_text)[1] + cti.PADDING_Y #padding
def _getblkwidth(self) -> float:
return cti.get_text_size(self.instruction_text)[0]+50 #padding
return cti.get_text_size(self.instruction_text)[0] + cti.PADDING_X #padding
class generic_instruction(Iinstruction):