Release 3.34.0

This commit is contained in:
MikeTheWatchGuy 2019-05-25 17:54:19 -04:00
parent c556b38e99
commit deed0caa5e
3 changed files with 37 additions and 8 deletions

View File

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

View File

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

View File

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