Skip to main content

A Tkinter tooltip widget that always stays on top.

Project description

PePy statistics PyPI Downloads

Creates a tooltip that will be displayed on top of all windows.

The tooltip will be attached to the assigned Tkinter widget and follow the mouse as long as mouse stays within widget boundaries.

Standard definition

The minimum definition of the tooltip uses these parameters:

  • widget - The widget to attach the tooltip to
  • msg - The text to display

Styling and definition

Additionaly these parameters can be used for more styling.

Display parameters

  • delay - Time to wait (in milliseconds) for the tooltip to be displayed
  • borderstyle - How is the border to be styled. Available values
    • solid [Default]

    • flat

    • raised

    • sunken

    • groove

    • ridge

    • groove, ridge, sunken, raised will need a border width of at least 3 to be visual. If borderwidth is not defined, or less than 3, it will be automatically adjusted.

  • borderwidth - Width of the border. Defaults to 1.
  • stationary - If set, the tooltip will be stationary, otherwise the tooltip will follow the mouses movements
  • blink - Settings for how the tooltip should blink. Defaults to not blink. Available parameters:
    • enabled: Boolean to set if blinking is enabled
    • interval: Time in milliseconds between blink updates
    • mode: In what way should the blinking be visible. Available values:
      • 'solid' [Default] The blinking will toggle between visible and not visible
      • 'opacity' The blinking will have a fading effect
    • min_alpha: Minimum opacity for 'opacity' mode
    • max_alpha: Maximum opacity for 'opacity' mode
    • step: Change in opacity per blink for 'opacity' mode
    • duration: Time in milliseconds after which blinking stops. When stopped, the tooltip will stay visible

Visual parameters

  • bg - Background color of the tooltip
  • font - Font for the text of the tooltip
  • wraplength - At what length should the text be wrapped. This in effect also affects max width of the tooltip

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alwaysontop_tooltip-1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alwaysontop_tooltip-1.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file alwaysontop_tooltip-1.2.tar.gz.

File metadata

  • Download URL: alwaysontop_tooltip-1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for alwaysontop_tooltip-1.2.tar.gz
Algorithm Hash digest
SHA256 418e021764d1bf100ee549b6b097c146036a03b15527b4d6dc7dc4873fc7daf9
MD5 9e03f09d55b7a735cee4bbae06b0c98a
BLAKE2b-256 db6189068076f316994bf397420a52e16e7607ce521e46eb7e79474f1429e5a5

See more details on using hashes here.

File details

Details for the file alwaysontop_tooltip-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for alwaysontop_tooltip-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e7271c0ffb91949e8b9e22384c7d741705577a4fab0d563350279e87ee9cb5ce
MD5 adef67000116eac3165fa2411e22c2a6
BLAKE2b-256 66db6007d6978811cc5aeb4d315faba8a55908e6857cb34babd0f063d9ed96bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page