I have a dialog that reads images from a folder directory. Every now and then, images are either added or removed in the directory.
Currently, I have to reload the plug-in and reopen the plug-in for the changes to reflect. Is there a way to have GeDialog reflect the changes when a button is pressed.
So far I have this code, but the problem is when the layout is flushed, it doesn't return back.
You can see the problem here:
def Command(self, id, msg): if id==10001: # When button is pressed save_image() self.LayoutFlushGroup(9002) self.LayoutChanged(9002) return True
Is there a way around this?