This method accepts 4 parameters x1, y1, x2, y2.To create a rectangle create_rectangle() method is used.Python Tkinter Canvas has built-in features to create shapes.If you are new to Python Tkinter or Python GUI programming, check out Python GUI Programming (Python Tkinter) and Python Tkinter drag and drop. The layer of python Tkinter canvas is decided on the basis of the sequence of placement, which means the object placed in end stys on the top layer.Moving to the right increases x value and Moving to the left increases y value.In canvas, x & y coordinates have 0 value at the top left corner.Using canvas 2D objects can be created like text, circle, rectangle, etc.Canvas is a drawing widget and it can hold other widgets as well. ![]() Like other widgets, the canvas is also a widget that is used for multiple uses.
0 Comments
Leave a Reply. |