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
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!
Background: A button,
btn_directory_explore
, chooses folder path variable _directoryproject using filedialog.askdirectory The text= ofbtn_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