User Preferences Dialog Example

When building a slightly more complex application using PySimpleGUI, you may run into the need to store user preferences to a file. This allow persisting some information or custom settings for the next time the user runs the application. UPDATE: 08/12/2020 Not sure how I missed this the first time, but the PySimpleGUI cookbook documentation has an example of saving user preferences. Check it out at this link: PySimpleGUI Cookbook Example ...

August 2, 2020 · 4 min · 787 words · shakiestnerd

PySimpleGui Versus tkinter Menus

I was wondering if some advanced menu features were available in PySimpleGui. Mainly, could you have check boxes next to items on the menu to show the state of that item? The screen shot below show menu checks in action in Visual Studio Code. PySimpleGui has the ability to create interfaces like those in tkinter, Qt, WxPython and Remi. It uses a nested list to layout menus, which makes like a whole lot simpler. ...

July 22, 2020 · 5 min · 891 words · shakiestnerd

Publishing My First Application

One of my latest goals is to publish applications that I write. It’s called “Pelican Article Generator”. It spits out a template for these blogposts. Publishing an application to the world is potentially embarrassing because I’m showing my horrible code to the world. Oh well. Here are the goals designed to shore up some weaknesses. Publish applications on GitHub under the MIT license Publish the corresponding documentation on readthedocs Include testing code as part of the project Learn to use the tools provided by GitHub Improve the application over time So, my first application is the one I mentioned in my previous PySimpleGUI post. I’ve settled on calling it PelicanArticleGenerator for lack of any creativity. ...

April 28, 2020 · 1 min · 141 words · shakiestnerd

PySimpleGUI - I am in!

A lot of my python work involves writing simple utilities. This means either writing the tool as a command line application or using a minimal GUI. I have been working on a simple python application recently to automate creating article stubs for this blog. I had a working version using tkinter for the user interface. I wanted to add a date picker, to allow selecting the date from a pop-up dialog. Tkinter doesn’t have a date picker in its widget collection. I did find where someone has written a date picker that is available to pip install. (It is called tkcalendar). ...

March 1, 2020 · 4 min · 741 words · shakiestnerd