[ Tklib Table Of Contents | Tklib Index ]
canvasLabel(n) 6.6 "canvasLabel class"
canvasLabel - tkpiechart canvas label class
The canvasLabel class brings some Tk label widget functionality to the canvas text item, such as a background and a border.
The canvasLabel is built with a bullet rectangle on the left side of the text. The relief changes according to the select state, with a traditionally sunken relief when selected.
The label has a specific tag, which can be used to retrieve the coordinates of the object or move it, thanks to the canvas facilities.
- stooop::new canvasLabel canvas ?options?
Creates a canvasLabel object in the specified Tk canvas. The canvasLabel object identifier is returned (referred to as canvasLabelObject in this document).
- switched::configure canvasLabelObject ?options?
Configures a canvasLabel object or returns all the options with their current values if no options are passed as parameters.
- switched::cget canvasLabelObject option
Returns an option value for the specified canvasLabel object.
- stooop::delete canvasLabelObject
Deletes the specified canvasLabel object.
The labeler has the following specific tag (see the canvas manual page ITEM IDS AND TAGS section for more information):
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category tkpiechart of the Tklib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.
Copyright © 1995-2004 Jean-Luc Fontaine <email@example.com>