Paper: Allow updating margins later
This commit is contained in:
		
							parent
							
								
									6047017551
								
							
						
					
					
						commit
						be01d2e9cd
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -14,6 +14,10 @@ class Paper: | |||
|             'bottom': 0, | ||||
|             'left': 0 | ||||
|         } | ||||
|         self.set_margins(margins) | ||||
|          | ||||
| 
 | ||||
|     def set_margins(self, margins): | ||||
|         if isinstance(margins, int) or isinstance(margins, float): | ||||
|             self.margins['top'] = margins | ||||
|             self.margins['right'] = margins | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue