Akascape / CTkToolTip

Small pop-up widget for displaying details inside customtkinter. (extension/add-on)
Creative Commons Zero v1.0 Universal
111 stars 7 forks source link

Can't update tooltip as I want to - Tooltips overlay each other #21

Closed matthew-efseaff closed 4 months ago

matthew-efseaff commented 4 months ago

Background: A button, btn_directory_explore, chooses folder path variable _directoryproject using filedialog.askdirectory The text= of btn_directory_explore displays just the basename, not the entire path I have a ToolTip that displays the entire _directoryproject folder path: btn_project_explore_tip = CTkToolTip(btn_project_explore, delay=0.1, message=directory_project)

Problem The tooltip doesn't get updated (using e.g. _updateidletasks() ) when the button is pressed/_directoryproject is changed unless I reassign/refresh the btn_project_explore_tip above. But when I do this I get stacked tooltips from the previous and current folder paths.

How do I delete or hide the previous tooltip so that I don't get stacked/overlayed tips? The only documentation available is from TKinter and doesn't work for me. Thank you

matthew-efseaff commented 4 months ago

Apologies... I read more closely and found .configure(message= ) instead of creating a multiple tooltips on top of each other with the same name. Thanks!