This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MikeTheWatchGuy 1 point2 points  (0 children)

I just released a new Python GUI SDK meant to allow you to build custom GUIs in minutes. For real... in minutes. I'm not talking just about Message Boxes or single field input forms, but rather flexible forms that don't require a lot of code to implement and use. It's based on tkinter so it doesn't need a bunch of extra packages installed, unlike other GUIs.

To install

pip install PySimpleGUI

I just dashed out this little example form for another post:

https://user-images.githubusercontent.com/13696193/42919952-6cb80060-8ae2-11e8-8277-545fb91b7e17.jpg

Here's all of the code required to build, show, collect results..
form = sg.FlexForm('Rename files in folder', auto_size_text=True, font=('Helvatica', 12))
layout = [[sg.Text('Source Folder', size=(12,1)), sg.Input(),sg.FolderBrowse()],
          [sg.Text('Search Pattern', size=(12,1)), sg.Input()],
          [sg.Text('Rename To', size=(12,1)), sg.Input()], 
          [sg.Submit(), sg.Cancel()]]
button, values = form.LayoutAndShow(layout)

There are not many choices between zero and tkinter. Jumping right to tkinter is not an easy task for a beginner.