Balloon

class ttkwidgets.frames.Balloon(master=None, headertext='Help', text='Some great help is displayed here.', width=200, timeout=1, background='#fef9cd', **kwargs)[source]

Bases: ttk.Frame

Simple help hover balloon.

__init__(master=None, headertext='Help', text='Some great help is displayed here.', width=200, timeout=1, background='#fef9cd', **kwargs)[source]

Create a Balloon.

Parameters:
  • master (widget) – widget to bind the Balloon to
  • headertext (str) – text to show in window header
  • text (str) – text to show as help text
  • width (int) – width of the window
  • timeout (float) – timeout in seconds to wait until the Balloon is shown
  • background (str) – background color of the Balloon
  • kwargs – keyword arguments passed on to the ttk.Frame initializer
cget(key)[source]

Query widget option.

Parameters:key (str) – option name
Returns:value of the option

To get the list of options for this widget, call the method keys().

config(**kwargs)[source]

Configure resources of the widget.

To get the list of options for this widget, call the method keys(). See __init__() for a description of the widget specific option.

configure(**kwargs)

Configure resources of the widget.

To get the list of options for this widget, call the method keys(). See __init__() for a description of the widget specific option.

show()[source]

Create the Toplevel widget and its child widgets to show in the spot of the cursor.

This is the callback for the delayed <Enter> event (see _on_enter()).