CanvasIdentify

class decida.CanvasIdentify.CanvasIdentify(canvas, **kwargs)

Bases: decida.ItclObjectx.ItclObjectx, Tkinter.Toplevel

synopsis:

Canvas identify class.

CanvasIdentify sets up a pop-up window to report location, curve identity, or other information at a canvas position.

configuration options:

verbose (bool, default=False)

enable/disable verbose mode

active (bool, default=True)

enable/disable identify display

delay (int, default=150)

number of milliseconds to delay before displaying identification message after hovering over associated window.

background (str, default=”yellow”)

help label background

foreground (str, default=”black”)

help label foreground

font (str, default=”Lucida 10”)

help label font

place (str, default=”NE”)

placement of help window with respect to target window. One of (“over”, “under”, “left”, “right”, “N”, “S”, “E”, “W”, “NE”, “SE”, “NW”, “SW”)

offset (int, default=”10”)

offset in x, y placement of help window with respect to target window

public methods:

  • public methods from ItclObjectx
message(u, v, message)

bind a message to a coordinate.

arguments:

u (canvas coordinate)

canvas horizontal coordinate

v (canvas coordinate)

canvas vertical coordinate

message (str)

message to display
message_hide()

hide the canvas identify window.