23 lines
1.3 KiB
Markdown
23 lines
1.3 KiB
Markdown
# Demo Programs
|
|
|
|
The [Demo Progams](http://Demos.PySimpleGUI.org) were the basis for many of the Trinkets you see on this page. There are over 300 of them to help give you a fast jump start on building your application, or they will teach you how to perform various operations.
|
|
|
|
If you want to learn how an element works, see example code, then check out the Demo Programs.
|
|
|
|
In 2022 a new PySimpleGUI application, `psgdemos`, was released to [PyPI](https://pypi.org/project/psgdemos/). All you need to do is:
|
|
|
|
`python -m pip install psgdemos`
|
|
`psgdemos`
|
|
|
|
(Use `python3` if you're on Linux or Mac)
|
|
|
|
The command `psgdemos` will launch the Demo Browser, your gateway to Demo Program fun. The Demo Browser enables you to easily **search**, **run**, and **edit** the programs.
|
|
|
|
For example, if you want to learn more about using the `Graph` element, then use the Demo Browser to search for Demo Programs that use that element:
|
|
|
|
![image](https://user-images.githubusercontent.com/46163555/156387506-ffd7ab13-be48-4780-a374-80920c5f2be2.png)
|
|
|
|
You can learn more about the Demo Browser and installing Demo Programs in the Cookbook, in the [Recipe on Demo Browser](https://pysimplegui.readthedocs.io/en/latest/cookbook/#recipe-the-demo-browser)
|
|
|
|
It's by far the easiest way to navigate the many examples available for you use.
|