readme.md updated from https://stackedit.io/

This commit is contained in:
MikeTheWatchGuy 2019-01-16 16:47:10 -05:00
parent eb080904da
commit 4e5e12b3d2
1 changed files with 9 additions and 4 deletions

View File

@ -2350,15 +2350,20 @@ Parameter definitions
visible - if False will create image as hidden visible - if False will create image as hidden
size_px - size of image in pixels size_px - size of image in pixels
### Image Methods ### `Update` Method
Like other Elements, the Image Element has an update method. Call Update if you want to change the image. Like other Elements, the Image Element has an `Update` method. Call Update if you want to change the image.
def Update(self, filename=None, data=None, visible=None): def Update(self, filename=None, data=None, visible=None):
Choose **either** a filename or in-ram data image to use to replace current image Choose **either** a filename or in-ram data image to use to replace current image
### `UpdateAnimation` Method
Starting in version 3.23 you can specify an animated GIF as an image and can animate the GIF by calling `UpdateAnimation`. Exciting stuff.
## Button Element ## Button Element
@ -4967,5 +4972,5 @@ In the hands of a competent programmer, this tool is **amazing**. It's a must-
The PySimpleGUI window that the results are shown in is an 'input' field which means you can copy and paste the results right into your code. The PySimpleGUI window that the results are shown in is an 'input' field which means you can copy and paste the results right into your code.
<!--stackedit_data: <!--stackedit_data:
eyJoaXN0b3J5IjpbMTk2MTk5ODU0Nl19 eyJoaXN0b3J5IjpbLTExNDg0OTA2MjNdfQ==
--> -->