gamelib.py
def draw(self, type: str, args, kwargs) -> None:
        "Draws a figure in the canvas."

        options = {"fill": "white", "tag": "figure"}
        options.update(kwargs)
        getattr(self.canvas, f"create_{type}")(*args, **options)
Draws a figure in the canvas.
Draws a figure in the canvas.
Draws a figure in the canvas .
def draw(self, type: str, args, kwargs) -> None:
        options = {"fill": "white", "tag": "figure"}
        options.update(kwargs)
        getattr(self.canvas, f"create_{type}")(*args, **options)
def draw ( self , type : str , args , kwargs ) -> None : options = { "fill" : "white" , "tag" : "figure" } options . update ( kwargs ) getattr ( self . canvas , f"create_{type}" ) ( * args , ** options )
Draws a figure in the canvas.
Draws a figure in the canvas .
"Draws a figure in the canvas."
self
type
str
args
kwargs