ecookbook restoring the folders for testing...
This commit is contained in:
parent
0574702876
commit
9f40a47d30
109 changed files with 0 additions and 0 deletions
13
docs/eCookbook/layouts/collapsible-sections.md
Normal file
13
docs/eCookbook/layouts/collapsible-sections.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
## Collapsible Sections
|
||||
|
||||
Visible / Invisible settings on the plain tkinter based PySimpleGUI have been a real challenge. In release 4.28.0 a new function, `pin`, was added that will "pin" an element to a location in your layout. This will reserve the location for the element in the layout. Without it, the element will move when you make it inivisible and visible again.
|
||||
|
||||
There is a 1-pixel "penalty" of sorts when using this capability. A single pixel is needed to reserve and hold this spot, a small price to pay given what you can do with this new capability.
|
||||
|
||||
This demo shows how you can use this feature to make Column elements invisible as if a section of the window has been collapsed with the contents hidden.
|
||||
|
||||
Here is how the demo looks running on Windows
|
||||
|
||||

|
||||
|
||||
<iframe src='https://trinket.io/embed/pygame/df2c15979e?start=result' width='100%' height='600' frameborder='0' marginwidth='0' marginheight='0' allowfullscreen></iframe>
|
Loading…
Add table
Add a link
Reference in a new issue