Implemented fontisze changing
This commit is contained in:
		| @@ -35,8 +35,12 @@ class inkycal_module(metaclass=abc.ABCMeta): | |||||||
|  |  | ||||||
|     for key, value in kwargs.items(): |     for key, value in kwargs.items(): | ||||||
|       if key in options: |       if key in options: | ||||||
|         setattr(self, key, value) |         if key == 'fontsize': | ||||||
|         print("set '{}' to '{}'".format(key,value)) |           self.font  = ImageFont.truetype(self.font.path, value) | ||||||
|  |           self.fontsize = value | ||||||
|  |         else: | ||||||
|  |           setattr(self, key, value) | ||||||
|  |           print("set '{}' to '{}'".format(key,value)) | ||||||
|       else: |       else: | ||||||
|         print('{0} does not exist'.format(key)) |         print('{0} does not exist'.format(key)) | ||||||
|         pass |         pass | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user