Paper: Allow updating margins later
This commit is contained in:
parent
6047017551
commit
be01d2e9cd
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue