From ecd1394a92480893e4758599a9a3cd626e01f248 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 16:43:58 -0500 Subject: [PATCH 01/11] readme.md updated from https://stackedit.io/ --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 8846c8c1..4602ad35 100644 --- a/readme.md +++ b/readme.md @@ -1533,7 +1533,7 @@ window = sg.Window('My window title').Layout(layout) Call to force a window to go through the final stages of initialization. This will cause the tkinter resources to be allocated so that they can then be modified. This also causes your window to appear. If you do not want your window to appear when Finalize is called, then set the Alpha to 0 in your window's creation parameters. -If you want to call an element's Update method or call a Graph element's drawing primitives, you ***must*** either call Read or Finalize prior to making those calls. +If you want to call an element's Update method or call a Graph element's drawing primitives, you ***must*** either call `Read` or `Finalize` prior to making those calls. #### Read(timeout=None, timeout_key='__TIMEOUT_ _ ') @@ -1561,10 +1561,10 @@ Sets the window's icon that will be shown on the titlebar. Can either be a fi #### Fill(values_dict) Populates the windows fields with the values shown in the dictionary. -#### Element(key) (shorthand version) -#### FindElement(key) +#### Element(key, silent_on_error=False) (shorthand version) +#### FindElement(key, silent_on_error=False) -Rerturns the Element that has a matching key. If the key is not found, an Error Element is returned so that the program will not crash should the user try to perform an "update". A Popup message will be shown +Returns the Element that has a matching key. If the key is not found, an Error Element is returned so that the program will not crash should the user try to perform an "update". A Popup message will be shown #### FindElementWithFocus() @@ -4958,5 +4958,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. \ No newline at end of file From eb080904da680d3bb30b4ff66834242218901a4b Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 16:45:34 -0500 Subject: [PATCH 02/11] readme.md updated from https://stackedit.io/ --- readme.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 4602ad35..37dcc779 100644 --- a/readme.md +++ b/readme.md @@ -31,9 +31,9 @@ -![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_3.x_Version-3.22.0-red.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_3.x_Version-3.23.0-red.svg?longCache=true&style=for-the-badge) -![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_2.7_Version-1.22.0-blue.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_2.7_Version-1.23.0-blue.svg?longCache=true&style=for-the-badge) ![Python Version](https://img.shields.io/badge/PySimpleGUIQt_For_Python_3.x_Version-0.22.0-orange.svg?longCache=true&style=for-the-badge) @@ -4851,6 +4851,15 @@ Emergency patch release... going out same day as previous release * Combobox Styling (again) +# 3.23.0 1.23.0 16-Jan-2019 + +* Animated GIFs! +* Calendar Chooser stays on top of other windows +* Fixed bug of no column headings for Tables +* Tables now use the font parameter + + + ### Upcoming Make suggestions people! Future release features @@ -4958,5 +4967,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. \ No newline at end of file From 4e5e12b3d2f23c47dc03528c2520251a1afe82a9 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 16:47:10 -0500 Subject: [PATCH 03/11] readme.md updated from https://stackedit.io/ --- readme.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 37dcc779..ed9f81c6 100644 --- a/readme.md +++ b/readme.md @@ -2350,15 +2350,20 @@ Parameter definitions visible - if False will create image as hidden 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): 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 @@ -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. \ No newline at end of file From bfe30f04733ec9a2d560084c8d25ce3a0401e377 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 16:51:56 -0500 Subject: [PATCH 04/11] readme.md updated from https://stackedit.io/ --- readme.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index ed9f81c6..a1327fa1 100644 --- a/readme.md +++ b/readme.md @@ -2359,9 +2359,16 @@ Like other Elements, the Image Element has an `Update` method. Call Update if y Choose **either** a filename or in-ram data image to use to replace current image -### `UpdateAnimation` Method +### `UpdateAnimation` Method for Animated GIFs -Starting in version 3.23 you can specify an animated GIF as an image and can animate the GIF by calling `UpdateAnimation`. Exciting stuff. +![loading animation](https://user-images.githubusercontent.com/13696193/51280871-d2041e80-19ae-11e9-8757-802eb95352ed.gif) + + +Starting in version 3.23 you can specify an animated GIF as an image and can animate the GIF by calling `UpdateAnimation`. Exciting stuff! + +```python +def Update(self, value=None, disabled=None, select=None, visible=None) +``` @@ -4972,5 +4979,6 @@ 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. \ No newline at end of file From 0b548270f1f524a905523f48ec185ab080ab544d Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 16:53:33 -0500 Subject: [PATCH 05/11] readme.md updated from https://stackedit.io/ --- readme.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index a1327fa1..a0ae9278 100644 --- a/readme.md +++ b/readme.md @@ -2367,9 +2367,11 @@ Choose **either** a filename or in-ram data image to use to replace current imag Starting in version 3.23 you can specify an animated GIF as an image and can animate the GIF by calling `UpdateAnimation`. Exciting stuff! ```python -def Update(self, value=None, disabled=None, select=None, visible=None) +UpdateAnimation(source, + size=(None, None), + time_between_frames=0) ``` - +Source can be a filename or a base64 bytes variable. ## Button Element @@ -4979,6 +4981,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. \ No newline at end of file From d080c49a8d096bccfec7fab2fc0532c2d9a50323 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 16:55:16 -0500 Subject: [PATCH 06/11] readme.md updated from https://stackedit.io/ --- readme.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index a0ae9278..c74ef53a 100644 --- a/readme.md +++ b/readme.md @@ -2368,10 +2368,9 @@ Starting in version 3.23 you can specify an animated GIF as an image and can ani ```python UpdateAnimation(source, - size=(None, None), - time_between_frames=0) + time_between_frames=0) ``` -Source can be a filename or a base64 bytes variable. +Source can be a filename ***or*** a base64 bytes variable (unlike other calls that split out the filename ## Button Element @@ -4981,5 +4980,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. \ No newline at end of file From d871712eb7dac51c62e3e76f36fd7d3e26fe9a1e Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 16:56:51 -0500 Subject: [PATCH 07/11] readme.md updated from https://stackedit.io/ --- readme.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index c74ef53a..e8cedf7e 100644 --- a/readme.md +++ b/readme.md @@ -2370,7 +2370,9 @@ Starting in version 3.23 you can specify an animated GIF as an image and can ani UpdateAnimation(source, time_between_frames=0) ``` -Source can be a filename ***or*** a base64 bytes variable (unlike other calls that split out the filename +`source` can be a filename ***or*** a base64 bytes variable (unlike other calls that split out the filename parameter and base64 parameter into 2 parameters. + +`time_between_frames` is an optional parameter. It will keep track of the amount of time between frame changes for you to give you a smooth animation. You can call the function as often as you want ## Button Element @@ -4980,5 +4982,6 @@ 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. \ No newline at end of file From 03855e834ed2eb45081780ac9f12ec08266df9e2 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 16:58:35 -0500 Subject: [PATCH 08/11] readme.md updated from https://stackedit.io/ --- readme.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index e8cedf7e..7da85d1f 100644 --- a/readme.md +++ b/readme.md @@ -2372,7 +2372,7 @@ UpdateAnimation(source, ``` `source` can be a filename ***or*** a base64 bytes variable (unlike other calls that split out the filename parameter and base64 parameter into 2 parameters. -`time_between_frames` is an optional parameter. It will keep track of the amount of time between frame changes for you to give you a smooth animation. You can call the function as often as you want +`time_between_frames` is an optional parameter. It will keep track of the amount of time between frame changes for you to give you a smooth animation. With this parameter you can call the function as often as you want and it will advance to the next frame only after the correct amount of time has lapsed. Or, you can call the method without setting this value and it will show a frame and immediately mopve on to the next frame. ## Button Element @@ -4978,10 +4978,7 @@ For Python questions, I simply start my query with 'Python'. Let's say you forg -In the hands of a competent programmer, this tool is **amazing**. It's a must-try kind of program that has completely changed my programming process. I'm not afraid of asking for help! You just have to be smart about using what you find. - -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. +In the hands of a competent programmer, this tool is **amazing**. It's a must-try kind of program that has completely changed my programming process. I'm not afraid of asking for help! You just have to be smart about us \ No newline at end of file From e0599e2e8a6c50110932c02470537051c29476f6 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 17:00:26 -0500 Subject: [PATCH 09/11] readme.md updated from https://stackedit.io/ --- readme.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 7da85d1f..a1be1bb0 100644 --- a/readme.md +++ b/readme.md @@ -2372,7 +2372,11 @@ UpdateAnimation(source, ``` `source` can be a filename ***or*** a base64 bytes variable (unlike other calls that split out the filename parameter and base64 parameter into 2 parameters. -`time_between_frames` is an optional parameter. It will keep track of the amount of time between frame changes for you to give you a smooth animation. With this parameter you can call the function as often as you want and it will advance to the next frame only after the correct amount of time has lapsed. Or, you can call the method without setting this value and it will show a frame and immediately mopve on to the next frame. +`time_between_frames` is an optional parameter. It will keep track of the amount of time between frame changes for you to give you a smooth animation. With this parameter you can call the function as often as you want and it will advance to the next frame only after the correct amount of time has lapsed. + +You can call the method without setting the `time_between_frames` value and it will show a frame and immediately move on to the next frame. This enables you to do the inter-frame timing. + + ## Button Element @@ -4978,7 +4982,7 @@ For Python questions, I simply start my query with 'Python'. Let's say you forg -In the hands of a competent programmer, this tool is **amazing**. It's a must-try kind of program that has completely changed my programming process. I'm not afraid of asking for help! You just have to be smart about us +In the hands of a competent programmer, this tool is **amazing**. It's a must-try kind of program that has completely changed my programming process. \ No newline at end of file From e6bc0d9f7976fcc21dbf93e008936b52ebfda3ff Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 17:02:08 -0500 Subject: [PATCH 10/11] readme.md updated from https://stackedit.io/ --- readme.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index a1be1bb0..6e3d82c5 100644 --- a/readme.md +++ b/readme.md @@ -155,9 +155,9 @@ In addition to a primary GUI, you can add a Progress Meter to your code with ONE ![easyprogressmeter](https://user-images.githubusercontent.com/13696193/44960065-83099100-aec6-11e8-8aa8-96e4b100a0e4.jpg) -You can build an async media player GUI with custom buttons in 30 lines of code. +It's simple to show animated GIFs. A single line of code -![media player 2](https://user-images.githubusercontent.com/13696193/44960091-eeebf980-aec6-11e8-884e-80d4447a83cd.jpg) +![loading animation](https://user-images.githubusercontent.com/13696193/51280871-d2041e80-19ae-11e9-8757-802eb95352ed.gif) How about embedding a game inside of a GUI? This game of Pong is written in tkinter and then dropped into the PySimpleGUI window creating a game that has an accompanying GUI. @@ -252,6 +252,7 @@ While simple to use, PySimpleGUI has significant depth to be explored by more ad Clickable links Transparent windows Movable windows + Animated GIFs No async programming required (no callbacks to worry about) @@ -4982,7 +4983,8 @@ For Python questions, I simply start my query with 'Python'. Let's say you forg -In the hands of a competent programmer, this tool is **amazing**. It's a must-try kind of program that has completely changed my programming process. +In the hands of a competent programmer, this tool is **amazing**. It's a must-try kind of program that has completely changed my \ No newline at end of file From 8afde7f56bcf752b02a3daf2f637c21ed5ac6512 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Wed, 16 Jan 2019 17:03:46 -0500 Subject: [PATCH 11/11] readme.md updated from https://stackedit.io/ --- readme.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 6e3d82c5..b3f0e8eb 100644 --- a/readme.md +++ b/readme.md @@ -155,7 +155,7 @@ In addition to a primary GUI, you can add a Progress Meter to your code with ONE ![easyprogressmeter](https://user-images.githubusercontent.com/13696193/44960065-83099100-aec6-11e8-8aa8-96e4b100a0e4.jpg) -It's simple to show animated GIFs. A single line of code +It's simple to show animated GIFs. ![loading animation](https://user-images.githubusercontent.com/13696193/51280871-d2041e80-19ae-11e9-8757-802eb95352ed.gif) @@ -4871,7 +4871,7 @@ Emergency patch release... going out same day as previous release * Combobox Styling (again) -# 3.23.0 1.23.0 16-Jan-2019 +# 3.23.0 PySimpleGUI / 1.23.0 PySimpleGUI27 16-Jan-2019 * Animated GIFs! * Calendar Chooser stays on top of other windows @@ -4985,6 +4985,5 @@ For Python questions, I simply start my query with 'Python'. Let's say you forg In the hands of a competent programmer, this tool is **amazing**. It's a must-try kind of program that has completely changed my \ No newline at end of file