CANVAS Line DPI

It might not be relevant, but you might find this helpful

https://anvil-extras.readthedocs.io/en/latest/guides/modules/utils.html#correct-canvas-resolution


from anvil_extras.utils import correct_canvas_resolution

class MyForm(MyFormTemplate):
     ...

     def canvas_reset(self, **event_args):
         c = self.canvas
         correct_canvas_resolution(c)
         ...

The code is based on this post:

1 Like