gamelib.py
def draw_button(self, x: int, y: int, options) -> None:
        "Draws a button in the canvas."

        if "image" in options:
            options["image"] = self.get_image(options["image"])

        button = Button(master=self, **options)
        if (x, y) not in self.buttons and button["text"] not in (btn["text"] for btn in self.buttons.values()):
            self.buttons[(x, y)] = button
            self.canvas.create_window(x, y, tags="window", window=button, anchor='c')
Draws a button in the canvas.
Draws a button in the canvas.
Draws a button in the canvas .
def draw_button(self, x: int, y: int, options) -> None:
        if "image" in options:
            options["image"] = self.get_image(options["image"])
        button = Button(master=self, **options)
        if (x, y) not in self.buttons and button["text"] not in (btn["text"] for btn in self.buttons.values()):
            self.buttons[(x, y)] = button
            self.canvas.create_window(x, y, tags="window", window=button, anchor='c')
def draw_button ( self , x : int , y : int , options ) -> None : if "image" in options : options [ "image" ] = self . get_image ( options [ "image" ] ) button = Button ( master = self , ** options ) if ( x , y ) not in self . buttons and button [ "text" ] not in ( btn [ "text" ] for btn in self . buttons . values ( ) ) : self . buttons [ ( x , y ) ] = button self . canvas . create_window ( x , y , tags = "window" , window = button , anchor = 'c' )
Draws a button in the canvas.
Draws a button in the canvas .
"Draws a button in the canvas."
self
x
int
y
int
options