Python Tkinter Canvas
The canvas widget is used to add the structured graphics to the python application. It is used to draw the graph and plots to the python application. The syntax to use the canvas is given below.
A list of possible options is given below.
||The represents the border width. The default width is 2.
||It represents the background color of the canvas.
||It is set to make the canvas unscrollable outside the scroll region.
||The cursor is used as the arrow, circle, dot, etc. on the canvas.
||It represents the size of the canvas in the vertical direction.
||It represents the highlight color when the widget is focused.
||It represents the type of the border. The possible values are SUNKEN, RAISED, GROOVE, and RIDGE.
||It represents the coordinates specified as the tuple containing the area of the canvas.
||It represents the width of the canvas.
||If it is set to a positive value. The canvas is placed only to the multiple of this value.
||If the canvas is scrollable, this attribute should be the .set() method of the horizontal scrollbar.
||Works like xscrollincrement, but governs vertical movement.
||If the canvas is scrollable, this attribute should be the .set() method of the vertical scrollbar.
Example: Creating an arc