From 87aef6928f79860d16ceb11e24d0954d6ed7a823 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 20 Sep 2018 23:16:26 -0400 Subject: [PATCH 1/2] Multiline - fix for appending lines. --- PySimpleGUI.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 908e3859..7883a948 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -761,7 +761,7 @@ class Multiline(Element): try: if not append: self.TKText.delete('1.0', tk.END) - self.TKText.insert(1.0, value) + self.TKText.insert(tk.END, value) except: pass self.DefaultText = value if self.Autoscroll: @@ -993,13 +993,11 @@ class Button(Element): # Realtime button release callback def ButtonReleaseCallBack(self, parm): - r, c = self.Position self.LastButtonClickedWasRealtime = False self.ParentForm.LastButtonClicked = None # Realtime button callback def ButtonPressCallBack(self, parm): - r, c = self.Position self.ParentForm.LastButtonClickedWasRealtime = True if self.Key is not None: self.ParentForm.LastButtonClicked = self.Key @@ -1009,6 +1007,7 @@ class Button(Element): # ------- Button Callback ------- # def ButtonCallBack(self): global _my_windows + # print(f'Parent = {self.ParentForm} Position = {self.Position}') # Buttons modify targets or return from the form # If modifying target, get the element object at the target and modify its StrVar target = self.Target @@ -1062,7 +1061,6 @@ class Button(Element): elif self.BType == BUTTON_TYPE_CLOSES_WIN: # this is a return type button so GET RESULTS and destroy window # first, get the results table built # modify the Results table in the parent FlexForm object - r,c = self.Position if self.Key is not None: self.ParentForm.LastButtonClicked = self.Key else: From 2d5a3a8ff959fdf8317560bc8e2d4d06358f5f36 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 20 Sep 2018 23:43:53 -0400 Subject: [PATCH 2/2] RELEASE 3.5.0 --- docs/index.md | 18 ++++++++++++++++-- readme.md | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index 2841f107..af243158 100644 --- a/docs/index.md +++ b/docs/index.md @@ -7,7 +7,7 @@ # PySimpleGUI -![Python Version](https://img.shields.io/badge/PySimpleGUI_Version-3.4.1-blue.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUI_Version-3.5.0-red.svg?longCache=true&style=for-the-badge) [Wiki for the latest news](https://github.com/MikeTheWatchGuy/PySimpleGUI/wiki) @@ -2154,7 +2154,8 @@ A MikeTheWatchGuy production... entirely responsible for this code.... unless it | 3.02.00 | Sept 14, 2018 - New Table Element (Beta release), MsgBox removed entirely, font setting for InputText Element, **packing change** risky change that allows some Elements to be resized,removed command parameter from Menu Element, new function names for ReadNonBlocking (Finalize, PreRead), change to text element autosizing and wrapping (yet again), lots of parameter additions to Popup functions (colors, etc). | 3.03.00 | New feature - One Line Progress Meters, new display_row_numbers for Table Element, fixed bug in EasyProgresssMeters (function will soon go away), OneLine and Easy progress meters set to grab anywhere but can be turned off. | 03,04.00 | Sept 18, 2018 - New features - Graph Element, Frame Element, more settings exposed to Popup calls. See notes below for more. -| 03.04.01 | Sept 18, 2018 - See release notes below +| 03.04.01 | Sept 18, 2018 - See release notes +| 03.05.00 | Sept 20, 2018 - See release notes ### Release Notes @@ -2222,6 +2223,19 @@ OneLineProgressMeter function added which gives you not only a one-line solution * Help - Shorcut button. Like Submit, cancel, etc * ReadButton - shortcut for ReadFormButton +#### 3.5.0 +* Tool Tips for all elements +* Clickable text +* Text Element relief setting +* Keys as targets for buttons +* New names for buttons: + * Button = SimpleButton + * RButton = ReadButton = ReadFormButton +* Double clickable list entries +* Auto sizing table widths works now +* Feature DELETED - Scaling. Removed from all elements + + ### Upcoming Make suggestions people! Future release features diff --git a/readme.md b/readme.md index 2841f107..af243158 100644 --- a/readme.md +++ b/readme.md @@ -7,7 +7,7 @@ # PySimpleGUI -![Python Version](https://img.shields.io/badge/PySimpleGUI_Version-3.4.1-blue.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUI_Version-3.5.0-red.svg?longCache=true&style=for-the-badge) [Wiki for the latest news](https://github.com/MikeTheWatchGuy/PySimpleGUI/wiki) @@ -2154,7 +2154,8 @@ A MikeTheWatchGuy production... entirely responsible for this code.... unless it | 3.02.00 | Sept 14, 2018 - New Table Element (Beta release), MsgBox removed entirely, font setting for InputText Element, **packing change** risky change that allows some Elements to be resized,removed command parameter from Menu Element, new function names for ReadNonBlocking (Finalize, PreRead), change to text element autosizing and wrapping (yet again), lots of parameter additions to Popup functions (colors, etc). | 3.03.00 | New feature - One Line Progress Meters, new display_row_numbers for Table Element, fixed bug in EasyProgresssMeters (function will soon go away), OneLine and Easy progress meters set to grab anywhere but can be turned off. | 03,04.00 | Sept 18, 2018 - New features - Graph Element, Frame Element, more settings exposed to Popup calls. See notes below for more. -| 03.04.01 | Sept 18, 2018 - See release notes below +| 03.04.01 | Sept 18, 2018 - See release notes +| 03.05.00 | Sept 20, 2018 - See release notes ### Release Notes @@ -2222,6 +2223,19 @@ OneLineProgressMeter function added which gives you not only a one-line solution * Help - Shorcut button. Like Submit, cancel, etc * ReadButton - shortcut for ReadFormButton +#### 3.5.0 +* Tool Tips for all elements +* Clickable text +* Text Element relief setting +* Keys as targets for buttons +* New names for buttons: + * Button = SimpleButton + * RButton = ReadButton = ReadFormButton +* Double clickable list entries +* Auto sizing table widths works now +* Feature DELETED - Scaling. Removed from all elements + + ### Upcoming Make suggestions people! Future release features