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

Widget should have position and size properties #2749

Open
mhsmith opened this issue Aug 7, 2024 · 0 comments
Open

Widget should have position and size properties #2749

mhsmith opened this issue Aug 7, 2024 · 0 comments
Labels
enhancement New features, or improvements to existing features.

Comments

@mhsmith
Copy link
Member

mhsmith commented Aug 7, 2024

There are reasonable use cases for this information, e.g. https://stackoverflow.com/questions/78841211/how-to-get-the-dimensions-of-a-toga-canvas-in-python.

In fact, we're already using the non-public layout.content_... properties in two of the example apps (canvas and screenshot).

These properties should be the same as the existing properties in Window, except they should be read-only.

@mhsmith mhsmith added the enhancement New features, or improvements to existing features. label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

1 participant