PySimpleGUI/docs/eCookbook/custom-elements-buttons-radio-buttons-etc/toggle-button-super-simple.md
2022-06-30 15:54:57 -04:00

1 KiB

Toggle Button - Super Simple

This demo shows you how to make a toggle button using 2 methods.

  1. A Button that changes color and text
  2. A Button with a graphic that changes

It's a simple way to get a toggle button in PySimpleGUI using the Button Element.

Toggle Button - Super Simple Graphic Only

And this one is even more simplified.

Toggle Button - Simple Graphic - No Button Animation

Maybe you don't want the graphic to move up and down like a button does. Not a problem....just switch from Button to Image.