Skip to content

sauravmishra1710/Python-GUI-with-PySimpleGUI

Repository files navigation

Python-GUI-with-PySimpleGUI

Creating GUI based apps using PySimpleGUI module. Details about PySimpleGUI module can be found @

  1. https://pypi.org/project/PySimpleGUI/
  2. https://pysimplegui.readthedocs.io/en/latest/cookbook/
  3. https://github.com/PySimpleGUI

Popup Button Configurations

  • Yes, No: 1

  • Cancel: 2

  • Error: 3

  • Ok, cancel: 4

  • No button: 5

    Eg.: sg.Popup("This is a simple popup", button_type=1) # button_type=2,3,4,5

Sample Applications

NotepadPy+

A simple application built using PySimpleGUI to allow documenting text files, saving, printing, note statistics, etc...

Executable @ https://github.com/sauravmishra1710/Python-GUI-with-PySimpleGUI/tree/main/Sample%20Executables/NotepadPy%2B.

Source Code @ https://github.com/sauravmishra1710/Python-GUI-with-PySimpleGUI/blob/main/Sample%20GUI%20Implementation/notepad.py

Demo

NotepadPy+

PyImageViewer

A simple image viewer application. Loads all the images (jpegs, pngs, etc..) from the selected directory to a list comtrol to be able to view.

Source Code @ https://github.com/sauravmishra1710/Python-GUI-with-PySimpleGUI/blob/main/Sample%20GUI%20Implementation/image_viewer.py

Snapshot

PyImageViewer

Tic-Tac-Toe

The tic-tac-toe game implemented using PySimpleGUI.

Source Code @ https://github.com/sauravmishra1710/Tic-Tac-Toe-using-PySimpleGUI/blob/main/tic_tac_toe_v1.py

Game Demo

Tic-Tac-Toe