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

enabled property on Tab doesn't work #154

Open
Moosems opened this issue Apr 26, 2024 · 0 comments
Open

enabled property on Tab doesn't work #154

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

Comments

@Moosems
Copy link
Collaborator

Moosems commented Apr 26, 2024

Describe the bug

import tukaan


app = tukaan.App()
window = tukaan.MainWindow(title="Test TabView widget")

# Create tabview
tabview = tukaan.TabView(window)
tabview.grid(margin=20)

# Create tabs
tab_1 = tabview.Tab("Tab 1")
tab_2 = tabview.Tab("Tab 2")

# Add tab contents
button_1 = tukaan.Button(tab_1, "Button in tab 1")
button_1.grid(margin=20)

button_2 = tukaan.Button(tab_2, "Button in tab 2")
button_2.grid(margin=20)

tab_1.enabled = False

app.run()
File ... , line 85, in enabled
self._set(state="normal" if value else "disabled")
    ^^^^^^^^^
AttributeError: 'Tab' object has no attribute '_set'

Expected behavior

Doesn't crash :)

Operating system

macOS 13 (Ventura)

Extra details about your system

No response

@Moosems Moosems added the bug Something isn't working label Apr 26, 2024
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

1 participant