From 84bc71ea3e365e5dfdbbebe9e82cc14c06281bd6 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 11:25:22 -0500 Subject: [PATCH 01/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index 18877a10..94f55730 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -119,7 +119,7 @@ while True: # Event Loop window.Close() ``` - + # Simple Data Entry - Return Values As List @@ -1533,6 +1533,6 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file From 6e0425dd40a43eaf6b9fd2654765c6e14365825c Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 11:28:27 -0500 Subject: [PATCH 02/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index 94f55730..b81d5389 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -119,7 +119,7 @@ while True: # Event Loop window.Close() ``` - + # Simple Data Entry - Return Values As List @@ -1533,6 +1533,6 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file From 9876eac92a4daa9963d45e3d6847a3cd185b4803 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sun, 3 Feb 2019 11:33:16 -0500 Subject: [PATCH 03/12] 0.6.0 --- PySimpleGUIWeb/readme.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PySimpleGUIWeb/readme.md b/PySimpleGUIWeb/readme.md index 4112c03c..079e6def 100644 --- a/PySimpleGUIWeb/readme.md +++ b/PySimpleGUIWeb/readme.md @@ -8,7 +8,7 @@ ![Python Version](https://img.shields.io/badge/Python-3.x-yellow.svg) -![Python Version](https://img.shields.io/badge/PySimpleGUIWeb_-0.5.0-orange.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUIWeb_-0.6.0-orange.svg?longCache=true&style=for-the-badge) @@ -166,6 +166,11 @@ New features * Autosize Button Text +## 0.6.0 PySimpleGUIWeb 3-Feb-2019 + +* Changed Remi port to 0 so will always get a new free port + + # Design # Author Mike B. From 4920095979bdbbd9327fe5332d8de3dc331c92b2 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 17:45:40 -0500 Subject: [PATCH 04/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index b81d5389..053a3364 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -19,6 +19,10 @@ with There is a short section in the Readme with instruction on installing PySimpleGUI If you like this Cookbook, then you'll LOVE the 100+ sample programs that are just like these. You'll find them in the GitHub at http://www.PySimpleGUI.com. These Recipes are simply several of those programs displayed in document format. + +# Experimental repl.it Embedded Windows + +You'll find a few of these Recipes are running in your browser window using PySimpleGUIWeb. They are included so that you can immediately play around with the SDK before installing one of the PySimpleGU # Copy these design patterns! @@ -1533,6 +1537,7 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file From 997a9e3ff1c1a8b94a6b598698dcbaa046d0c4a2 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 17:47:14 -0500 Subject: [PATCH 05/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index 053a3364..151081f3 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -22,7 +22,9 @@ If you like this Cookbook, then you'll LOVE the 100+ sample programs that are ju # Experimental repl.it Embedded Windows -You'll find a few of these Recipes are running in your browser window using PySimpleGUIWeb. They are included so that you can immediately play around with the SDK before installing one of the PySimpleGU +You'll find a few of these Recipes are running in your browser window using PySimpleGUIWeb. They are included so that you can immediately play around with the SDK before installing one of the PySimpleGUI variants on your computer. + +This is a new capability for PySimpleGUI that has only very recently been started # Copy these design patterns! @@ -1537,7 +1539,7 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file From 186080bea235ccb9614c3791336d906a09a62dee Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 17:48:48 -0500 Subject: [PATCH 06/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index 151081f3..76187830 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -24,7 +24,7 @@ If you like this Cookbook, then you'll LOVE the 100+ sample programs that are ju You'll find a few of these Recipes are running in your browser window using PySimpleGUIWeb. They are included so that you can immediately play around with the SDK before installing one of the PySimpleGUI variants on your computer. -This is a new capability for PySimpleGUI that has only very recently been started +This is a new capability for PySimpleGUI that has only very recently been started. Only a few of the elements are operational using PySimpleGUIWeb. So, be prepared for some bugs. It's got a ways to go, but still seemed valuable to include. # Copy these design patterns! @@ -1539,7 +1539,7 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file From 85b184b58a923a922a8cef7c771ccbb32af5b62f Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 17:51:53 -0500 Subject: [PATCH 07/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index 76187830..2c16ea7c 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -152,6 +152,8 @@ Same GUI screen except the return values are in a list instead of a dictionary a print(event, values[0], values[1], values[2]) ``` + + # Simple data entry - Return Values As Dictionary A simple GUI with default values. Results returned in a dictionary. @@ -1539,7 +1541,7 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file From 8cd082a167e3d774bfd5078785341f6799973d0d Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 18:34:58 -0500 Subject: [PATCH 08/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index 2c16ea7c..7ad347da 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -180,7 +180,11 @@ A simple GUI with default values. Results returned in a dictionary. print(event, values['_NAME_'], values['_ADDRESS_'], values['_PHONE_']) ``` ---------------------- + + + + +------- @@ -1541,7 +1545,7 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file From b63d5376a3ee1205d3a42b7f32417f52889a54d0 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 18:41:45 -0500 Subject: [PATCH 09/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index 7ad347da..0f257aa5 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -345,7 +345,8 @@ while True: timer_running = not timer_running window.FindElement('_OUTPUT_').Update('{:02d}:{:02d}.{:02d}'.format((i // 100) // 60, (i // 100) % 60, i % 100)) ``` - + + -------- @@ -1545,7 +1546,8 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file From 8c74b58e4c9e9c33e5323d6cded3dba81f033a8e Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 19:03:08 -0500 Subject: [PATCH 10/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index 0f257aa5..6eab50f3 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -795,6 +795,8 @@ while True: # Event Loop window.Close() ``` + + ## Multiple Windows This recipe is a design pattern for multiple windows where the first window is not active while the second window is showing. The first window is hidden to discourage continued interaction. @@ -1546,8 +1548,8 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file From bfd9b750e270f6d19a38fc480996b0d8248d718a Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sun, 3 Feb 2019 19:54:00 -0500 Subject: [PATCH 11/12] Release 0.7.0 --- PySimpleGUIWeb/PySimpleGUIWeb.py | 47 ++++++-------------------------- PySimpleGUIWeb/readme.md | 8 ++++-- 2 files changed, 14 insertions(+), 41 deletions(-) diff --git a/PySimpleGUIWeb/PySimpleGUIWeb.py b/PySimpleGUIWeb/PySimpleGUIWeb.py index 827235ab..f4b63d09 100644 --- a/PySimpleGUIWeb/PySimpleGUIWeb.py +++ b/PySimpleGUIWeb/PySimpleGUIWeb.py @@ -477,7 +477,6 @@ class InputText(Element): super().__init__(ELEM_TYPE_INPUT_TEXT, size=size, background_color=bg, text_color=fg, key=key, pad=pad, font=font, tooltip=tooltip, visible=visible, size_px=size_px) - # def InputTextCallback(self, widget:remi.gui.TextInput, value, keycode): def InputTextCallback(self,widget, key, keycode, ctrl, shift, alt): # print(f'text widget value = {widget.get_value()}') # widget.set_value('') @@ -490,23 +489,20 @@ class InputText(Element): def Update(self, value=None, disabled=None): - if disabled is True: - self.TKEntry['state'] = 'disabled' - elif disabled is False: - self.TKEntry['state'] = 'normal' if value is not None: - try: - self.TKStringVar.set(value) - except: - pass - self.DefaultText = value + self.Widget.set_value(str(value)) + if disabled is True: + self.Widget.set_enabled(False) + elif disabled is False: + self.Widget.set_enabled(True) def Get(self): - return self.TKStringVar.get() + return self.Widget.get_value() def SetFocus(self): try: - self.TKEntry.focus_set() + # TODO NOT IMPLEMENTED YET + pass except: pass @@ -4032,10 +4028,8 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): # ------------------------- COLUMN element ------------------------- # if element_type == ELEM_TYPE_COLUMN: - print('adding column') element = element # type: Column element.Widget = column_widget = remi.gui.VBox() - if element.Justification.startswith('c'): print('CENTERING') column_widget.style['align-items'] = 'center' @@ -4048,30 +4042,6 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): PackFormIntoFrame(element, column_widget, toplevel_form) tk_row_frame.append(element.Widget) - # if element.Scrollable: - # col_frame = TkScrollableFrame(tk_row_frame, - # element.VerticalScrollOnly) # do not use yet! not working - # PackFormIntoFrame(element, col_frame.TKFrame, toplevel_form) - # col_frame.TKFrame.update() - # if element.Size == (None, None): # if no size specified, use column width x column height/2 - # col_frame.canvas.config(width=col_frame.TKFrame.winfo_reqwidth(), - # height=col_frame.TKFrame.winfo_reqheight() / 2) - # else: - # col_frame.canvas.config(width=element.Size[0], height=element.Size[1]) - # - # if not element.BackgroundColor in (None, COLOR_SYSTEM_DEFAULT): - # col_frame.canvas.config(background=element.BackgroundColor) - # col_frame.TKFrame.config(background=element.BackgroundColor, borderwidth=0, - # highlightthickness=0) - # col_frame.config(background=element.BackgroundColor, borderwidth=0, highlightthickness=0) - # else: - # col_frame = tk.Frame(tk_row_frame) - # PackFormIntoFrame(element, col_frame, toplevel_form) - # - # col_frame.pack(side=tk.LEFT, padx=element.Pad[0], pady=element.Pad[1], expand=True, fill='both') - # if element.BackgroundColor != COLOR_SYSTEM_DEFAULT and element.BackgroundColor is not None: - # col_frame.configure(background=element.BackgroundColor, highlightbackground=element.BackgroundColor, - # highlightcolor=element.BackgroundColor) # ------------------------- TEXT element ------------------------- # elif element_type == ELEM_TYPE_TEXT: element = element # type: Text @@ -4089,7 +4059,6 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): element.Widget.onclick.connect(element.ChangedCallback) tk_row_frame.append(element.Widget) - # ------------------------- BUTTON element ------------------------- # elif element_type == ELEM_TYPE_BUTTON: element = element # type: Button diff --git a/PySimpleGUIWeb/readme.md b/PySimpleGUIWeb/readme.md index 079e6def..e0ce5402 100644 --- a/PySimpleGUIWeb/readme.md +++ b/PySimpleGUIWeb/readme.md @@ -8,7 +8,7 @@ ![Python Version](https://img.shields.io/badge/Python-3.x-yellow.svg) -![Python Version](https://img.shields.io/badge/PySimpleGUIWeb_-0.6.0-orange.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUIWeb_-0.7.0-orange.svg?longCache=true&style=for-the-badge) @@ -31,7 +31,7 @@ This Readme is for information ***specific to*** the Web port of PySimpleGUI. PySimpleGUIWeb enables you to run your PySimpleGUI programs in your web browser. It utilizes a package called Remi to achieve this amazing package. -## Engineering Pre-Release Version 0.5.0 +## Engineering Pre-Release Version 0.7.0 [Announcements of Latest Developments](https://github.com/MikeTheWatchGuy/PySimpleGUI/issues/142) @@ -170,6 +170,10 @@ New features * Changed Remi port to 0 so will always get a new free port +## 0.7.0 PySimpleGUIWeb 3-Feb-2019 + +* Completed `InputText.Update` method so that more demos can be run + # Design # Author From 57a19991a89f5e4d3340391550c1f419ea374ee4 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy <13696193+MikeTheWatchGuy@users.noreply.github.com> Date: Sun, 3 Feb 2019 20:08:41 -0500 Subject: [PATCH 12/12] docs/cookbook.md updated from https://stackedit.io/ --- docs/cookbook.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/cookbook.md b/docs/cookbook.md index 6eab50f3..f2fbf77d 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -971,6 +971,9 @@ There are a number of features used in this Recipe including: window.FindElement('input').Update(keys_entered) # change the window to reflect current key string ``` + + + ## Animated Matplotlib Graph @@ -1548,8 +1551,8 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file