Balloon Text Tool Tips With Tkinter - Python Tkinter GUI Tutorial #131

preview_player
Показать описание
In this video I'll show you how to do Balloon Text Tool Tips with Tkinter and Python.

To create our tool tips, we'll use tix widgets. Tix widgets were deprecated back in Python 3.6 or so, and you shouldn't use them...unless you really really want to ;-) They aren't the best-documented widgets out there, and they are no longer maintained; so use at your own risk!
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

Hi! To turn the baloon's background color to white, one can use:
for sub in tip.subwidgets_all():
sub.configure(bg='white')

jmachado
Автор

Just use the Pmw libary for balloon widgets instead its much newer and looks better. Here's some demo code

from tkinter import *
import Pmw

root = Tk()
Pmw.initialise(root)

# Create some random widget
button = Button(root, text = " This is a Test", pady = 30)
button.pack(pady = 10)

# create ballon object and bind it to the widget
balloon = Pmw.Balloon(root)
balloon.bind(button, "Text for the tool tip")

mainloop()

hackercop
Автор

Thanks for the video. A thought: A guy named Burkhard Meier took a completely different route (in a book of his) with regards to Tooltips in Tkinter. He basically creates a small little new Toplevel window with the toolbar removed which he binds with the widget. He uses a class of course and passes the widget and the tooltip text. With the toplevel window, you can set the colours to your liking as well. Maybe you can make a lesson on that method one day... 😉
All this just goes to show that if a programmer wants to do something he will find a way...

EFoxVN
Автор

Smash that like button guys n gals! its free! great python tkinter tutorial, Codemy. Thanks

RyanDanielG
Автор

Thank you very much. Was very precise work.

parsabahrambeik
Автор

So why has this functionality been deprecated with nothing equivalent to replace it?

microknigh
Автор

Thanks for the videos! Can you bind tix to treeview headers?

jeffsharp
Автор

Sir, how to make label widgets selectable, so that the user can copy the selected text if needed.

cmputerprgrammer
Автор

Im not sure if youll see this. I made a label with place(x=mouse_x, y=mouse_y) and it works, but when i place_forget my buttons disappear if the "tooltip" was on top of the buttons. And i dont understand why. Maybe you could shed some light on it?

kendalk
Автор

Want a video on - How can we make our Tkinter app a executable file using cx-freeze and the proper way to distribute our apps to others.
Plz plz plz sir !!

saritachaurasia
Автор

Hello chief...i am working on a school project...i seen your videos of CRM and made a project on that....I wanna know...how can we do that if another person filled all entries...and it will be saved in same database...let as assume the person is far far miles away...and i gave him my exe file of project and he tries that project from his home....
Help me to get out of this problem....?

gouravsharma
Автор

Balloon tips work fine but when I convert it to excitable file using pyinstaller, it show a massage " can't find package Tix" really I'm stuck.

tonnykizito
Автор

in the video number 124, you put the excel columns manually, how to get the number of columns and rows active in an excel file automatic?

Example: how to do a for loops to get the numbers of rows and columns from the excel file ?
What is the python function name to get the rows and columns from the excel file ?

ramehharmouch
Автор

Keep explaining like that!!!! Fantastic.
But, tix after 2002, does no give any update. And actually it is not working for tcl and tk after v.8.4.
I am in python 3.8, so the only way is installing also previous versions of tcl and tk.

pititav.c.
Автор

Why doesn't works in python 3.8.6?
It shows me package require Tix

altaiba
Автор

sir, i am getting this...
_tkinter.TclError: invalid command name "tixBalloon"
code -
from tkinter.tix import*
tip_line=Balloon(root)

shehab
Автор

Doesn't work for me. _tkinter.TclError: can't find package Tix
Hope you will show a different method for this depreciated tool.
Thanks so much for these videos!

fhtommy
Автор

lol, just chaned from " root = tkinter.Tk() "
to " root = Tk " and works well :p

thanks for tutorial <3

KrosTurbo
Автор

_tkinter.TclError: can't find package Tix on Macos

khaidemsandip