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

IconButton tooltip display problem #3928

Closed
1 task done
azhago opened this issue Sep 3, 2024 · 1 comment
Closed
1 task done

IconButton tooltip display problem #3928

azhago opened this issue Sep 3, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@azhago
Copy link
Contributor

azhago commented Sep 3, 2024

Duplicate Check

Describe the bug

Tooltip for IconButton don't work as expected

With a string as tooltip, displayed tooltip is sourrounded by double quotes
With ft.Tooltip as tooltip, displayed tooltip is like "{"message": xxx}"

Code sample

Code
import flet as ft

def main(page: ft.Page=None) -> None:
    new_tooltip = ft.IconButton(icon=ft.icons.ADD, icon_size=32, tooltip=ft.Tooltip(message="test new tooltip "))
    old_tooltip = ft.IconButton(icon=ft.icons.ADD, icon_size=32, tooltip="test message")

    page.add(new_tooltip)
    page.add(old_tooltip)


if __name__ == "__main__":
    ft.app(target=main)

To reproduce

simply run above code and over the iconbuttons

Expected behavior

for string tooltip : not surrounded by doublequotes
for ft.Tooltip : display only the content of message value

Screenshots / Videos

Captures with ft.tooltip: ![image](https://github.com/user-attachments/assets/0d2e3379-9c15-4ee3-bebd-62cad5d83baf) with string tooltip: ![image](https://github.com/user-attachments/assets/6ce744bc-8df2-4a0b-a66e-c196d466916b)

Operating System

Windows

Operating system details

w11

Flet version

0.24.0

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

string tooltip were not surrounded by doublequotes on flet 0.22

@ndonkoHenri
Copy link
Contributor

Duplicate of #3920

@ndonkoHenri ndonkoHenri marked this as a duplicate of #3920 Sep 3, 2024
@ndonkoHenri ndonkoHenri added the duplicate This issue or pull request already exists label Sep 3, 2024
@flet-dev flet-dev locked as resolved and limited conversation to collaborators Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants