PySimpleGUI Release 4.3 up on PyPI
PySimpleGUI (tkinter version) Release 4.3 is out
This is a rather significant release for a couple of reasons.
- All interfaces have been made PEP8 compliant while retaining the original CamelCase definitions
- Better layout controls.
- Container Elements can have contents justified left, right & center.
Windowshave a justification setting that will apply to all Window-level elements
- New
Sizerelement that will fill out your containers to the size specified by theSizer
Here are the full release notes:
4.3 PySimpleGUI Release 22-Aug-2019
PEP8 PEP8 PEP8 Layout controls! Can finally center stuff Some rather impactful changes this time Let's hope it doesn't all blow up in our faces!
- PEP8 interfaces added for Class methods & functions
- Finally a PEP8 compliant interface for PySimpleGUI!!
- The "old CamelCase" are still in place and will be for quite some time
- Can mix and match at will if you want, but suggest picking one and sticking with it
- All docs and demo programs will need to be changed
- Internally saving parent row frame for layout checks
- Warnings on all Update calls - checks if Window.Read or Window.Finalize has been called
- Warning if a layout is attempted to be used twice
- Shows an "Error Popup" to get the user's attention for sure
- Removed all element-specific SetFocus methods and made it available to ALL elements
- Listbox - no_scrollbar parameter added. If True then no scrollbar will be shown
- NEW finalize bool parameter added to Window. Removes need to "chain" .Finalize() call.
- NEW element_justification parameter for Column, Frame, Tab Elements and Window
- Valid values are 'left', 'right', 'center'. Only first letter checked so can use 'l', 'c','r'
- Default = 'left'
- Result is that all Elements INSIDE of this container will be justified as specified
- Works well with new Sizer Elements
- NEW justification parameter for Column elements.
- Justifies Column AND the row it's on to this setting (left, right, center)
- Enables individual rows to be justified in addition to the entire window
- NEW Sizer Element
- Has width and height parameters. Can set one or both
- Causes the element it is contained within to expand according to width and height of Sizer Element
- Helps greatly with centering. Frames will shrink to fit the contents for example. Use Sizer to pad out to right size
- Added Window.visibility_changed to match the PySimpleGUIQt call
- Fixed Debugger so that popout window shows any newly added locals
Posted Aug 22, 2019, 10:12 PM UTC
33
Thank goodness for the justification!
-sigh- yea, sorry it was a long time coming. Not sure I was ready to do it before even though it would have been really nice. It finally hit me as to how I could do it and just as importantly, how to write it in PySimpleGUI code (specifying in the Elements and Window). These things have to cook for a while. S, enjoy...
Don't forget the PEP8 interfaces if that's a big deal to you. The problem at the moment with using them is that you'll be stuck on PySimpleGUI until I get them ported to Qt, Wx, Web.
No problem! Thank you for your hard work. It's very appreciated.