jessielw / jessielw/Custom-Tkinter-Tooltip
Not on top of TopMost windows
- Dominant language
- Python
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
I have a GUI with a switch to toggle if it's always on top or not, but it's in a tight space so I can't have the full "Always on Top" label and shortened it to AoT. I wanted a tooltip to tell people what that meant, but when the switch is on, the tooltip is behind the GUI. It looks great when it's off so the tooltip is on top, though.
edit: adding this on line 33 solves it for your example, but not when importing as a module:
`tw.attributes('-topmost', True)`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the example using the workaround shown for line 33, then compare it with the behavior when the tooltip is imported as a module. Trace the topmost-window handling in that path; done means the tooltip stays above an always-on-top GUI in both usage modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100