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

.size() method crashes application #149

Closed
Moosems opened this issue Apr 25, 2024 · 2 comments
Closed

.size() method crashes application #149

Moosems opened this issue Apr 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Moosems
Copy link
Collaborator

Moosems commented Apr 25, 2024

Describe the bug

The following crashes the python program with the error message TypeError: 'Size' object is not callable.

import tukaan


app = tukaan.App()
window = tukaan.MainWindow()

window.size(100)

app.run()

Expected behavior

Resizes the window to 100, 100.

Operating system

macOS 13 (Ventura)

Extra details about your system

I don't believe its actually relevant here, this is a code bug, not distro bug :D

@Moosems Moosems added the bug Something isn't working label Apr 25, 2024
@rdbende
Copy link
Member

rdbende commented Apr 26, 2024

It's a property, not a method. window.size = 100 works.

@rdbende rdbende closed this as completed Apr 26, 2024
@Moosems
Copy link
Collaborator Author

Moosems commented Apr 26, 2024

Can I make a note for that in the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants