CanvasIdentify¶
-
class
decida.CanvasIdentify.
CanvasIdentify
(canvas, **kwargs)¶ Bases:
decida.ItclObjectx.ItclObjectx
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 modeactive (bool, default=True)
enable/disable identify displaydelay (int, default=150)
number of milliseconds to delay before displaying identification message after hovering over associated window.background (str, default=”yellow”)
help label backgroundforeground (str, default=”black”)
help label foregroundfont (str, default=”Lucida 10”)
help label fontplace (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 windowpublic methods:
- public methods from ItclObjectx
-
message_hide
()¶ hide the canvas identify window.
-
message_show
(u, v, text)¶ bind a message to a coordinate.
arguments:
u (canvas coordinate)
canvas horizontal coordinatev (canvas coordinate)
canvas vertical coordinatetext (str)
text to display