From deed0caa5e35759ec09cbf284c931a78c4a9c69a Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sat, 25 May 2019 17:54:19 -0400 Subject: [PATCH] Release 3.34.0 --- PySimpleGUI27.py | 19 +++++++++++++++---- docs/index.md | 13 +++++++++++-- readme.md | 13 +++++++++++-- 3 files changed, 37 insertions(+), 8 deletions(-) diff --git a/PySimpleGUI27.py b/PySimpleGUI27.py index 2b337cf1..e7c12381 100644 --- a/PySimpleGUI27.py +++ b/PySimpleGUI27.py @@ -4037,12 +4037,18 @@ class Window(object): self.TKroot.iconify() def Maximize(self): - self.TKroot.state('zoomed') + if sys.platform != 'linux': + self.TKroot.state('zoomed') + else: + self.TKroot.attributes('-fullscreen', True) # this method removes the titlebar too # self.TKroot.attributes('-fullscreen', True) def Normal(self): - self.TKroot.state('normal') + if sys.platform != 'linux': + self.TKroot.state('normal') + else: + self.TKroot.attributes('-fullscreen', False) def StartMove(self, event): @@ -5458,6 +5464,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): element.TKText.insert(1.0, default_text) # set the default text if element.BackgroundColor is not None and element.BackgroundColor != COLOR_SYSTEM_DEFAULT: element.TKText.configure(background=element.BackgroundColor) + if DEFAULT_SCROLLBAR_COLOR not in (None, COLOR_SYSTEM_DEFAULT): element.TKText.vbar.config(troughcolor=DEFAULT_SCROLLBAR_COLOR) element.TKText.pack(side=tk.LEFT, padx=elementpad[0], pady=elementpad[1], expand=True, fill='both') if element.Visible is False: @@ -8195,7 +8202,7 @@ def main(): [Frame('Structured Data Group', frame5, title_color='red'), ], # [Frame('Graphing Group', frame6)], [TabGroup([[tab1, tab2]])], - [ProgressBar(max_value=800, size=(60, 25), key='+PROGRESS+'), Button('Button'), Button('Exit', tooltip='Exit button')], + [ProgressBar(max_value=800, size=(60, 25), key='+PROGRESS+'), Button('Button'),B('Normal'), Button('Exit', tooltip='Exit button')], ] layout=[[Column(layout1)]] @@ -8205,7 +8212,7 @@ def main(): # background_color='black', right_click_menu=['&Right', ['Right', '!&Click', '&Menu', 'E&xit', 'Properties']], # transparent_color= '#9FB8AD', - resizable=False, + resizable=True, ).Finalize() graph_elem.DrawCircle((200, 200), 50, 'blue') i = 0 @@ -8229,6 +8236,10 @@ def main(): window.Element('_TEXT1_').SetTooltip('NEW TEXT') window.SetTransparentColor( '#9FB8AD') window.Maximize() + elif event == 'Normal': + window.Normal() + + # TimerStop() window.Close() diff --git a/docs/index.md b/docs/index.md index 2dcbb862..ca97b8b3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -33,9 +33,9 @@ -![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_3.x_Version-3.33.0-red.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_3.x_Version-3.34.0-red.svg?longCache=true&style=for-the-badge) -![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_2.7_Version-1.33.0-blue.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_2.7_Version-1.34.0-blue.svg?longCache=true&style=for-the-badge) ![Python Version](https://img.shields.io/badge/PySimpleGUIQt_Version-0.31.0-orange.svg?longCache=true&style=for-the-badge) @@ -4966,6 +4966,15 @@ Mixup.... 3.26 changes don't appear to have been correctly released so releasing * Emergency fix due to debugger. Old bug was that Image Element was not testing for COLOR_SYSTEM_DEFAULT correctly. + +## 3.34.0 PySimpleGUI & 1.34.0 PySimpleGUI27 25-May-2019 + +Trying to get the fixes rolled out as quickly as possible that the Debugger has uncovered. Most have to do with setting the look and feel to the "system default" + +* Fixed Window.Maximize and Window.Normal - needed special code for Linux +* Check for DEFAULT_SCROLLBAR_COLOR not being the COLOR_SYSTEM_DEFAULT (crashed) + + ### Upcoming Make suggestions people! Future release features diff --git a/readme.md b/readme.md index 2dcbb862..ca97b8b3 100644 --- a/readme.md +++ b/readme.md @@ -33,9 +33,9 @@ -![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_3.x_Version-3.33.0-red.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_3.x_Version-3.34.0-red.svg?longCache=true&style=for-the-badge) -![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_2.7_Version-1.33.0-blue.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUI_For_Python_2.7_Version-1.34.0-blue.svg?longCache=true&style=for-the-badge) ![Python Version](https://img.shields.io/badge/PySimpleGUIQt_Version-0.31.0-orange.svg?longCache=true&style=for-the-badge) @@ -4966,6 +4966,15 @@ Mixup.... 3.26 changes don't appear to have been correctly released so releasing * Emergency fix due to debugger. Old bug was that Image Element was not testing for COLOR_SYSTEM_DEFAULT correctly. + +## 3.34.0 PySimpleGUI & 1.34.0 PySimpleGUI27 25-May-2019 + +Trying to get the fixes rolled out as quickly as possible that the Debugger has uncovered. Most have to do with setting the look and feel to the "system default" + +* Fixed Window.Maximize and Window.Normal - needed special code for Linux +* Check for DEFAULT_SCROLLBAR_COLOR not being the COLOR_SYSTEM_DEFAULT (crashed) + + ### Upcoming Make suggestions people! Future release features