Merge pull request #284 from MikeTheWatchGuy/Dev-latest

Dev latest
This commit is contained in:
MikeTheWatchGuy 2018-09-20 23:44:26 -04:00 committed by GitHub
commit 07dd65d249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 8 deletions

View File

@ -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:

View File

@ -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

View File

@ -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