community icon indicating copy to clipboard operation
community copied to clipboard

Changing `previous_image` in `ActionPrevious` doesn't work

Open neelmehta247 opened this issue 5 years ago • 0 comments

Software Versions

  • Python: 3.7.10
  • OS: macOS/Linux
  • Kivy: 2.0.0
  • Kivy installation method: pip

Describe the bug

I am trying to change the previous_image on ActionPrevious. Here's some sample code

class ActionPreviousChild(ActionPrevious):
    def on_press(self):
        self.previous_image = new_img_string

but this does not work and the image does not change.

This seems like a bug considering previous_image is a property and it's changes should be reflected in the UI.

Expected behavior

previous_image changes when the property is updated.

To Reproduce

Try changing the previous_image property on an ActionPrevious. Check code example above.

Code and Logs and screenshots

Check code example above.

neelmehta247 avatar Jun 07 '21 21:06 neelmehta247