Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to draw shapes? #2426

Open
fhg-isi opened this issue Apr 9, 2024 · 0 comments
Open

How to draw shapes? #2426

fhg-isi opened this issue Apr 9, 2024 · 0 comments

Comments

@fhg-isi
Copy link

fhg-isi commented Apr 9, 2024

There seems to be a shapes object but it does not have a method to add new shapes.
https://docs.xlwings.org/en/stable/api/shapes.html

=> How to draw shapes using xlwings?

Related:

https://stackoverflow.com/questions/74989259/how-can-i-add-and-modify-shapes-in-an-excel-file-using-python

import xlwings as xw

wb = xw.Book('example.xlsx')
sht = wb.sheets[0]
sht.shapes.add_shape(1, 1, 2, 2, 'circle')  # <= add_shapes method does not exist
wb.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant