diff --git a/app.py b/app.py index b6901b9..91ea01a 100644 --- a/app.py +++ b/app.py @@ -232,6 +232,9 @@ def loadImage(self,file_name): # Only working with complete file address key = 'PImage_'+str(len(self.images)) self.sendLine(key + ' = loadImage(\''+str(file_name)+'\''+')') + # The self.images is never updated, so the "key" remains the same + # can't upload multiple images + self.images.append(key) #resolves the issues and updates the self.images return key def image(self,*args):