Hi,
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:
https://www.dropbox.com/s/9ckr4dad6vf9f3x/c4d198_update_gui_dialog_when_button_is_pressed.mp4?dl=0
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?