• xxao

    Hi all,
    Finally I released initial alpha version of my Python drawing API library. The aim of the library was to unify drawing experience (API) throughout multiple available backends such as wxPython, PyCairo or PyMuPDF. In addition, the very same API can easily be used within the Pythonista app. Feel free to try it out. I hope someone will find it useful as well as I do.

    https://github.com/xxao/pero

    Regards,
    martin

    posted in Pythonista read more
  • xxao

    Thanks, that works. Unfortunately I cannot use the "with..." directly but storing the state and using state.enter() and state.exit() does exactly what I need. Would be nicer to use something like state.save() and state.restore() but I have not found anything like this.

    Thanks again.

    posted in Pythonista read more
  • xxao

    Hi,
    is there any way to remove clipping path? I haven't found any specific method so I've tried to set a new clipping to the size of full image, but it did not help. It looks like the clip can only be shrinked more and more but never enlarged. Or did I missed something?

    Thanks for any help.

    # set clip
    ui_path = ui.Path.rect(x, y, width, height)
    ui_path.add_clip()
    
    # remove clip
    ui_path = ui.Path.rect(0, 0, full_width, full_height)
    ui_path.add_clip()
    

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!