Skip to content
Discussion options

You must be logged in to vote

@karimawii there is a bug in your sample code, calling .pack() to your Label and then assigning that to label will always be non since pack() returns None.

You should probably be doing something like

def populate(frame):
    for item in fonts:
        label = Label(frame,text=text,font=(item, 40))
        label.pack()
        tip = ToolTip(label,msg=item)

Replies: 1 comment

Comment options

gnikit
Feb 23, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by gnikit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #43 on February 23, 2023 17:08.