Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

changing color of rect canvas does no longer work properly in version 4.0

my_canvas = Canvas()

#below works

my_canvas['rect'] = Rect(-100, -100, 200, 200, color = "red")

#but below no longer works in version 4.0 (did work before)

my_canvas['rect'] = Rect(-100, -100, 200, 200)

my_canvas['rect'].color = "red" #runtime error that.color does not exist

my_canvas.show()

clock.sleep(5000)

Comments

  • Thanks for reporting. It is being tracked here

    Buy Me A Coffee

  • Hi Henk,

    Can you update your version? That problem has been fixed in the end of last year, so if you have the latest version, it should actually not show this problem anymore.

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.