https://github.com/jessielw/custom-tkinter-tooltip
Basic Hover Tooltip for Tkinter based off of Tkinter's built in tooltip with the added ability to customize options
https://github.com/jessielw/custom-tkinter-tooltip
bubble custom gui hover hovertip message popup python texttip tkinter tooltip
Last synced: 6 months ago
JSON representation
Basic Hover Tooltip for Tkinter based off of Tkinter's built in tooltip with the added ability to customize options
- Host: GitHub
- URL: https://github.com/jessielw/custom-tkinter-tooltip
- Owner: jessielw
- License: mit
- Created: 2022-07-14T20:50:29.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T20:29:01.000Z (over 1 year ago)
- Last Synced: 2025-03-29T11:12:36.857Z (6 months ago)
- Topics: bubble, custom, gui, hover, hovertip, message, popup, python, texttip, tkinter, tooltip
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Custom-Tkinter-Tooltip
Basic Hover Tooltip for Tkinter based off of Tkinter's built in tooltip with the added ability to customize most options## Install:
`pip install --upgrade Custom-Tooltip`*https://pypi.org/project/Custom-Tooltip/*
## Uninstall:
`pip uninstall Custom-Tooltip`## Use:
Example:
```
from custom_hovertip import CustomTooltipLabel
CustomTooltipLabel(anchor_widget=button1, text="This is tooltip text for button1.")
```Full Example:
```
from tkinter import *
from custom_hovertip import CustomTooltipLabeltop = Tk()
top.title("Test Custom Tooltip")
label = Label(top, text="Place your mouse over buttons")
label.pack()
button1 = Button(top, text="Button 1")
button1.pack()
CustomTooltipLabel(anchor_widget=button1, text="This is tooltip text for button1.")
button2 = Button(top, text="Button 2")
button2.pack()
CustomTooltipLabel(anchor_widget=button2, text="This is tooltip\ntext for button2.", background="grey",
foreground="black", width=15, justify=CENTER)
top.mainloop()
```
You only have to define the widget it's anchored to as well as the text. You can see this example under `button1`## Customization:
References to the Label Widget:
*https://www.tutorialspoint.com/python/tk_label.htm* and *https://www.pythontutorial.net/tkinter/tkinter-label/*Options that can be changed are:
`justify, foreground, background, relief, font, wraplength, anchor, border, width, textvariable`## Pictures:

