Python Forum
[PySimpleGUI] New GUI Package. Customize with ease
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PySimpleGUI] New GUI Package. Customize with ease
#1
There's a new GUI on the scene!

You'll find PySimpleGUI on PyPI:
pip install --upgrade PySimpleGUI

The GitHub is
https://github.com/MikeTheWatchGuy/PySimpleGUI

It runs on Python3, on the PC, Linux, Mac Raspberry Pi, etc.

It's built on tkinter and has no other dependencies.

[Image: 43366716-38559d1a-9310-11e8-8540-9098656f7372.jpg]

A simple GUI can be built, shown, and have the results directly populated into the caller's variables

[Image: 43417007-df6d8408-9407-11e8-9986-30f0415f08a5.jpg]

That GUI requires this much code:
import PySimpleGUI as sg

form = sg.FlexForm('Rename file or folders', location=(800,800)) # begin with a blank form

layout = [[sg.Text('Rename files or folders')],
[sg.Text('Source for Folders', size=(15, 1)), sg.InputText(), sg.FolderBrowse()],
[sg.Text('Source for Files ', size=(15, 1)), sg.InputText(), sg.FolderBrowse()],
[sg.Submit(), sg.Cancel()]]

button, (folder_path, file_path) = form.LayoutAndRead(layout)


I think this is by far the most Python-like GUI that's currently available.

This may sound pretentious, but is there a formal process for submitting proposals for official new packages to the Python Foundation? I think Python is long overdue something like this.

My source code may not be the prettiest. It's the SDK's interface that I focused on.

If you're in need of a GUI and don't have much time, this is a great option. You can code up a custom GUI in under 10 minutes.

Sorry, got the source code a little wrong and didn't format correctly.

import PySimpleGUI as sg

form = sg.FlexForm('Rename file or folders')  # begin with a blank form

layout = [[sg.Text('Rename files or folders')],
          [sg.Text('Source for Folders', size=(15, 1)), sg.InputText(), sg.FolderBrowse()],
          [sg.Text('Source for Files ', size=(15, 1)), sg.InputText(), sg.FolderBrowse()],
          [sg.Submit(), sg.Cancel()]]

button, (folder_path, file_path) = form.LayoutAndRead(layout)
Reply


Messages In This Thread
[PySimpleGUI] New GUI Package. Customize with ease - by PySimpleGUI - Aug-02-2018, 04:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PySimpleGUI Try Except jamesaarr 1 2,001 Nov-18-2021, 02:02 PM
Last Post: jamesaarr
  [PySimpleGUI]Install package on Conda not up-to-date RayJohnson 4 4,578 Jan-22-2020, 11:17 PM
Last Post: RayJohnson

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020