Paper: Allow updating margins later

This commit is contained in:
fruchti 2022-12-17 23:11:39 +01:00
parent 6047017551
commit be01d2e9cd

View file

@ -14,6 +14,10 @@ class Paper:
'bottom': 0, 'bottom': 0,
'left': 0 'left': 0
} }
self.set_margins(margins)
def set_margins(self, margins):
if isinstance(margins, int) or isinstance(margins, float): if isinstance(margins, int) or isinstance(margins, float):
self.margins['top'] = margins self.margins['top'] = margins
self.margins['right'] = margins self.margins['right'] = margins