[Python] AttributeError for python arcade programming for a class

Discussão em 'Python' iniciado por Stack, Fevereiro 9, 2025.

  1. Stack

    Stack Membro Participativo

    I am just learning to use Python Arcade for a game programming class. I am following the instructions to make a drawing. I am getting an AttributeError that says module 'arcade' has no attribute 'draw_lrtb_rectangle_filled'. And asking if I meant the exact same thing?

    import arcade
    arcade.open_window(600,600, "Drawing Example")
    arcade.set_background_color(arcade.csscolor.SKY_BLUE)
    arcade.start_render()
    arcade.draw_lrtb_rectangle_filled(0,599,300,0,
    arcade.csscolor.GREEN)
    arcade.finish_render()
    arcade.run()


    The attribute error is coming up with the function portion of arcade.draw_lrtb_rectangle_filled().

    Continue reading...

Compartilhe esta Página