Skip to content

Announcements (maybe blog is more accurate) #142

Open

Description

@MikeTheWatchGuy

Announcements - New Features, Design Patterns, and Methods

I'm unsure how GitHub sends out updates. I don't think people are informed about Wiki changes for example. I've been announcing new features and more importantly, new ways of doing things, on the Wiki. I'm going to put announcements here so they are more visible. If there are objections about the traffic, well, what can I say, it's a busy/active project.

Activity

  1. MikeTheWatchGuy commented on Sep 6, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    New use pattern - Element lookup using Keys

    keys can be used to lookup Elements. As a result, all Elements are capable of having a key, including non-output elements such as a Text Element.

    To get an element object from a form, you call
    form.FindElement(key)

    This is the new, preferred method for doing Updates on elements.

    Previously if you wanted to output something to a Text Element, you needed to create the text element outside of the form layout and keep that text element variable around so you can call text_element. Update('new text')

    The new design pattern is thus:
    In your form layout, include a key on your Element:

    layout = [[sg.Text('My text', key='text')]]
    

    Later in your code you can update this Text Element by making this call, assuming the variable form is your FlexForm object:

    form.FindElement('text').Update('new text')
    

    The Demo programs have all been updated to use this new technique. This capability and its impact on the length of programs led to pushing version 2.30 out the door quickly.

  2. MikeTheWatchGuy commented on Sep 6, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    Borderless Windows are Here

    Try them on your next form.
    Add this to your FlexForm call:
    no_titlebar = True

    You can expect to see some of these in the Demo programs.

    borderless grayed buttons

    You can click anywhere on the window and drag to move it. Don't forget to put an exit key on these windows.

    Be sure and make an "exit" button or you'll be running task manager to close your windows. The reason is the when you turn on this option, you will not see an icon on your taskbar for the window. This happens on both Windows and Linux. Thus, if you do not supply an exit button, the user will have no means to close the window.

  3. MikeTheWatchGuy commented on Sep 7, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    Grab Anywhere

    Tonight's change is perhaps going to be a really cool thing or one that is going to piss people off.

    But, hey, I like it this way. If you don't, setgrab_anywhere = Falsein your call to FlexForm.

    As the name implies, you can grab and drag your window using any point on the window, not just the title bar. I was only enabling this when the title bar was turned off. I think it's a much superior way to interact with a window.

    FlexForm is becoming quite the call!
    def __init__(self, title, default_element_size=DEFAULT_ELEMENT_SIZE, default_button_element_size = (None, None), auto_size_text=None, auto_size_buttons=None, scale=(None, None), location=(None, None), button_color=None, font=None, progress_bar_color=(None, None), background_color=None, is_tabbed_form=False, border_depth=None, auto_close=False, auto_close_duration=DEFAULT_AUTOCLOSE_TIME, icon=DEFAULT_WINDOW_ICON, return_keyboard_events=False, use_default_focus=True, text_justification=None, no_titlebar=False, grab_anywhere=True):

    So, enjoy a lazy way of interacting with windows on me.

    You will want to turn if off for forms with a SLIDER. you need the slider to move, not the window. I'll update the Demos that use sliders to turn off the grab_anywhere.

  4. MikeTheWatchGuy commented on Sep 7, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    Tables

    This one has been requested a number of times. Rather than make a Table Element, decided to see if the current PySimpleGUI is capable of making nice tables using standard Elements. The answer seems to be yes, it's possible with existing Elements. The key was to enable text justification in the InputText element. By right justifying the text in those Elements, it's possible to create a nice looking table.

    Here's an example using a BudugBox and Input Elements.

    light table

    You'll find the code that generated the table in the file Demo_Table_Simulation.py. It requires the latest PySimpleGUI from GitHub in order to use the justification setting.

    This is a "live keyboard" demo. It updates the table values as you are typing.

    There are 3 fields at the top of the table. If you enter a value into the 3rd field, the cell that the other 2 cells represents will be changed to that value. Enter 1, 2, 1234 and cell (1,2) will be changed to 1234.

    There is a new trick demonstrated in this demo that shows off the power of Python. Rather than pass in a string as the key to the Input Elements, I passed a tuple. Nothing about the key requires it to be a string. The only requirement is that you use the same type to look up the element when you call FindElement or use the key to read the return values.

    This is the code that makes the Input Elements:

        for i in range(20):
            inputs = [sg.In('{}{}'.format(i,j), size=(8, 1), pad=(1, 1), justification='right', key=(i,j), do_not_clear=True) for j in range(10)]
    

    See how the key is set to (i,j). This allow me to easily find the Element that is represented by (i,j) later. What to access the cell at (0,0)? This you would make this call:
    form.FindElement((0,0))

    Hopefully this is enough capability for the folks that need tables in their forms/window.

  5. MikeTheWatchGuy commented on Sep 7, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    Three Point Oh!

    So maybe I kinda screwed up the numbering when the last one became 2.30. I didn't think about it looking like 2.3 also. Doh!

    There have been a lot of changes lately so perhaps it's time for a major bump.

    It's a clean slate

  6. MikeTheWatchGuy commented on Sep 8, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    keep_on_top = True

    What might this setting do in a call to FlexForm? If you guessed create a window that's ways on top you're right.

    This one little flag enables cool floating toolbars that stay on top of all of your other windows. I'll admit a large portion of this project is for selfish purposes, that I have a platform to develop tools on top of.

    Now I've got this nifty toolbar on the top part of my screen, always ready to launch or do something.

    floating launcher

  7. MikeTheWatchGuy commented on Sep 8, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    3.0.2 release today to turn off the grab_anywhere feature for non-blocking forms. tkinter is printing out a warning/error message when the form is closed using a button. Doesn't appear to have any effect on the overall functioning, but it's distressing to see. Better to disable this feature for now.

    Plan is to add back an override mechanism should a user want it.

  8. MikeTheWatchGuy commented on Sep 8, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    RELEASED 3.0.2

  9. MikeTheWatchGuy commented on Sep 8, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    Floating Toolbar - New demo program

    This is an always-on-top, compact floating toolbar. They are super-handy to leave running. Something satisfying about writing code that then gets used often, especially if they make you much more efficient.

  10. MikeTheWatchGuy commented on Sep 9, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    Async Forms

    Updated the Readme / primary doc to discuss the use of non-block forms.

    As explained in the documentation there are a number of techniques to move away from async forms including using the change_submits = True parameter for elements and return_keyboard_events = True

  11. MikeTheWatchGuy commented on Sep 9, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    Floating Desktop Widgets

    I've discovered that in about 30 lines of code you can create a floating desktop widget.

    snap0276

    If you click the pause button, it switches to Run.

    snap0275

    This "Widget" is always on top of the other windows.

    Looking for a way of launching these in a way that have no taskbar icons. If launched from PyCharm it behaves this way. If launched from a Toolbar, the toolbar's window is attached to the timer. Close it and the timer closes.

    This demo is the first time I've ever combined a ReadNonBlocking with a Read in the same form. The reason for using it in this program is that while the timer is paused, there' s nothing happening so why have the program running the loop when it can wait for the user to do something like click a button. When the button is clicked we return from the Read call.

    Thank you to jfong for sending an interesting version of this program. His ideas have rolled into a into the project code many times.

  12. MikeTheWatchGuy commented on Sep 10, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    Menus are done

    The last of the big features, Menus, was just released to GitHub. With it comes the ability to get the look and feel of a windows program. I don't know if the architecture will lend itself to being used this way or not, but it did seem like a useful feature to add..

    snap0204

  13. MikeTheWatchGuy commented on Sep 10, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    3.7 Support

    Thanks to @mrstephenneal we can now say that PySimpleGUI works on Python 3.7. There was a button issue causing trouble. Looks like it's fixed now so I think 3.7 is now safe to with PSG.

  14. MikeTheWatchGuy commented on Sep 10, 2018

    @MikeTheWatchGuy
    CollaboratorAuthor

    Release 3.01.00

    Menus! (and a Listbox.Update bug) are the big features.

    Since the Menu code is somewhat isolated, and I want to get some users on it, decided to go ahead and push it all out there in 3.01.00

    I didn't mention this in the readme section on menus, but by default (you can't currently turn it off) menus are detachable. If you double-click the dashed line then you get a floating version of that menu. Should make for some pretty interesting user interfaces?

    tear off

  15. 1310 remaining items

  16. PySimpleGUI commented on Aug 16, 2026

    @PySimpleGUI
    Owner

    Patch Release 6.3.0.1 Posted to PyPI

    Today I uploaded a patch that changed 1 line in the PySimpleGUI.py file. It fixes a crash bug when a tooltip is put on a Tree element, a common operation.

    Haven't figured out exactly what to do here on GitHub. I would like to post a release. It looks like I'm going to need to make a branch and label that..... so expect a couple of near misses before it's right.

  17. PySimpleGUI commented on Aug 21, 2026

    @PySimpleGUI
    Owner

    Tooltips as a Debugging Aid

    Seems like a lot of the code I've been writing lately have a complex key structure. One of the biggest reasons is that I've been working on GUIs that have repeating elements. Here's an example settings window for my launcher application. Because groups of element repeat and there can be any number of them, the keys are tuples.

    Image

    I realized that PySimpleGUI has a mechanism that can be easily exploited as a debugging aid..... Tooltips

    I've been expanding the tooltips features (and releasing tooltip bugs to PyPI in the process Image) so maybe that's what gave me the idea.

    This shows using it in action. I've got a lot of elements in a small amount of space with multiple container elements. This can cause the tooltip window to get dismissed early which is what you'll see in the screen capture when I moused over the "Clock" button

    20260821-2230-32.4359686.mp4

    Enabling

    This line of code was all I added to the application that you see in the screen capture:

        sg.set_options(set_tooltip_to_element_key=True, tooltip_font='courier 15', tooltip_background_color='black', tooltip_text_color='green')

    The important parameter is the set_tooltip_to_element_key=True

    Warning Added to set_options

    This won't help when running on an older version of PySimpleGUI, but it'll help from version 6.3.8 and later. I added a kwargs parameter to set_options that will soak up any parameters that are not valid. In the future, rather than getting a crash with unknown parameter, you'll see a warning message on stdout.

    This bad call:

    sg.set_options(use_custom_titlebar=False, bad_parm='value', bad2=3)

    will cause this warning on stdout:

    set_options - bad parameter set. The parameter(s) used in set_options were not recognized options:
             bad_parm=value
             bad2=3
    
  18. PySimpleGUI commented on Sep 2, 2026

    @PySimpleGUI
    Owner

    "Works unreasonably well"

    My favorite video essayist in the AI space is Welch Labs. Really good stuff. One of their videos is titled:
    "Why Deep Learning Works Unreasonably Well"

    "Unreasonably" well is exactly how these LLMs + harnesses work. It's shocking. While the bitterness will linger about the impacts, the tech itself is as close to magic as I think I've seen in software. I find it difficult to reconcile.

    Claude Fable 5... an AI Jason

    One of the many things @jason990420 has done for this project has been to come up with clever, compact, efficient pieces of tkinter code that users can add to their code to help them accomplish something they want to do but isn't possible using the standard PySimpleGUI SDK. He fixed quirks that I was never able to find solutions to. In many ways, Jason has a better understanding of tkinter than I do.

    Claude has been crushing us both, or at least me, in the ability to get specific behaviors in my applications.

    The PySimpleGUI Regression Test Suite

    Here's my current Regression Test front-end. I wanted two specific features to handle the top and bottom scrollable areas. The Pane that slides up and down was the easy part. The part that I've always struggled with (and never got right), is when a window shrinks smaller than the starting size, then the buttons, etc get cut off. What we want to shrink are the scrollable areas. That's the Multiline on the bottom and the scrollable column of tests at the top.

    So, what I wanted to retain was the status bar at the very bottom, and everything between the sash of the Pane element and the list of tests (there is a row of buttons and status line). Here's the result.

    Screen.Recording.2026-09-02.102306.mp4

    Claude Fable 5 did the magic. It's straightforward, sorta. The key point that I didn't know is that the last elements packed into the window are the first to get cut off/shrink. The trick is to unpack all of the row frames, an internal PySimpleGUI construct, and repack them so that the row frame you want to shrink is the very last to be packed.

    This was all the code that needed to be added after creating my Window in order to get this behavior.

        # --- Repack rows so shrinking clips the FLEXIBLE element, never the fixed rows ---
        # tk clips last-packed widgets first.  So: anchor the must-stay-visible rows to the BOTTOM
        # first (reverse visual order), then repack the expanding row LAST so it alone absorbs all
        # grow/shrink.  Applied inside each half of the Pane.
        def repack_shrink_friendly(expand_elem, bottom_elems):
            """bottom_elems: fixed rows in top-to-bottom visual order; expand_elem's row absorbs all resize."""
            for elem in [expand_elem] + bottom_elems:
                elem.ParentRowFrame.pack_forget()
            for elem in reversed(bottom_elems):
                elem.ParentRowFrame.pack(side=tk.BOTTOM, fill=tk.X, expand=False)
            expand_elem.ParentRowFrame.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
    
        repack_shrink_friendly(window[K_SCRIPTCOL], [window[K_SEP2], window[K_RUNSEL], window[K_PBAR]])   # top: script list flexes; sep/buttons/progress pinned
        repack_shrink_friendly(window[K_LOG], [window[K_SUMMARY]])                                        # bottom: Multiline flexes; summary pinned

    "AI Inside"

    I'm still wrestling with how to disclose Claude for Demo Programs or other example applications. As my outlook/relationship with AI evolves, I'm using it more in measured ways. Just want to be clear what code was written by me and my junior coding partner, sometimes brilliant, other times downright thick, versus purely original code.

    The Regression Test Suite was coding mostly by Claude. It's been quite iterative with Claude and I taking turns editing. It's feeling more like a product in terms of the features I'm asking for & getting and how polished the flow, status, smooth operation go. I feels like a product, but it's a prototype.... one that works really well for what I need, but it's not something I would trust shipping. Maybe someday, but I'm not there yet.

  19. PySimpleGUI commented on Sep 18, 2026

    @PySimpleGUI
    Owner

    Slow updates....

    Sorry about the recent slow-down in bug fixing and new releases. I've been doing a lot of application building using Claude Fable 5. It's impacting my PySimpleGUI releases in two ways:

    1. Distracted by the fun applications I'm playing with
    2. Unsure exactly how to roll out any code that Claude has touched

    Use of AI is a polarizing topic, but perhaps becoming a little less (or so I hope). It's more about being clear that I've added code that was AI generated. I'm still only using the application/web interface. I don't like minions rifling through my digital heap of files and changing things. Would much rather pass files back and forth in a more controlled manner for now.

    New Drag and Drop Design

    It was the changes Claude made to psgdnd that led to my decision to begin releasing changes I've made with Claude's help.... or changes Claude's made with my help.

    I've been adding some drag and drop features to the apps I use frequently. I wondered if there was an easier way to register elements, that maybe all elements could be set up for drag and drop at once. When I asked Claude to build a sample application where all elements are made to accept drag and drop. I didn't expect Claude to modify and hand me back a new version of the psgdnd package with esome changes made to it.

    The API design was much more elegant than the primitive register an element for a file or text drop. The new version incorporated the concept of rules. All applications integrate with it using the same code. There's a single line of code that calls an enable function. The Rules are passed in as parameters.

    A 1-line enable example

    import psgdnd
    window = sg.Window(..., finalize=True)
    psgdnd.enable(window, rules={K_MIDI: psgdnd.Rule(ext=('.mid', '.midi'))}, skip=[K_SEARCH])
    ...
    elif isinstance(event, tuple) and event[0] == psgdnd.DND_EVENT:   # in event loop
        drop = values[event]          # .files .file .text .kind .applied

    A Better Formatted example

    Rather than have the Rules definition in the enable call, this one defines the Rules and other parms ahead of the enable.

    # ---- Drag & drop rules: only the exceptions are listed; everything else gets psgdnd's default for its element type ------------------------
    DND_RULES = {K_PATH: psgdnd.Rule(ext=('.txt', '.md', '.py')),                   # one file, only these extensions (no-entry cursor for others)
                 K_FILES: psgdnd.Rule(multiple=True),                               # several files, joined with ';' like sg.FilesBrowse
                 K_EDITOR: psgdnd.Rule(files=psgdnd.CONTENTS, text=psgdnd.INSERT)}  # a dropped text file is loaded; dropped text goes at the cursor
    DND_SKIP = [K_SEARCH]                                                           # never a drop target
    
    ...
    # In main function
        window = sg.Window(f'psgdnd {psgdnd.__version__} demo — drag files, folders and text onto the elements', layout, finalize=True, resizable=True)
    
        count = psgdnd.enable(window, rules=DND_RULES, skip=DND_SKIP)              # <-- the whole drag & drop integration

    But wait, there's more

    It also added a hook so that users could get a callback, something I've not built into any of the PSG libraries. It'll be interesting to see if it gets used... or if there are bugs that may lurk there.

    Here's the docstring for the enable function:

    def enable(window: sg.Window, rules=None, skip=(), window_rule=WINDOW_RULE, on_drop_callback=None):
        """
        Make every input-type element of a finalized window a drop target with the standard behavior.
    
        :param window:            Finalized window
        :type window:             (sg.Window)
        :param rules:             {element_key or element class: Rule or dict of Rule kwargs} overriding DEFAULT_RULES; value None removes the element
        :type rules:              (dict | None)
        :param skip:              keys of elements that must not accept drops
        :type skip:               (iterable)
        :param window_rule:       Rule for drops on the window background (None = window background refuses drops)
        :type window_rule:        (Rule | None)
        :param on_drop_callback:  callback(drop_event) run before the default action; return False to cancel it (event is still sent)
        :type on_drop_callback:   (callable | None)
        :return:                  number of targets registered
        :rtype:                   (int)
        """

    Bested

    There's no doubt that I've been bested by Fable 5. I'm learning a lot about what PySimpleGUI can do. LOL Loads of features, UI designs, window behaviors that I had no idea how to accomplish with PySimpleGUI. It's difficult to get all the bells and whistles into applications, but Claude has no problem always including a standard set of controls for scrolling, zooming, etc. I've never experienced zooming by using CTRL + Mouse Wheel or a two finger pinch in a PySimpleGUI application.... until last week.

    So, I've been sitting on changes, fixes, new repo ideas while I wrestle with the decision to allow Claude's code into the project. After seeing the quality and depth of the code it's producing, it's hard to argue against not using that help.

    I can struggle with window positioning on various Linux desktop environments, or I can let Claude read the tkinter source, the Linux docs and source code to figure out a fix that works on Windows, Mac and Linux. It did a better job of finding that fix than I did. I do enjoy debugging and problem solving, but I'm not a Linux expert and don't have a Mac. That makes those cross-platform problems not particularly fun to work to fix, although it has been fun working together with PSG users to figure out the issues.

    Rolling out soon

    Now that I made that go/no-go decision on AI-assisted code (and designs), I'll figure out what to release where and how to be transparent in the process. Uncharted waters but an exciting time. I honestly didn't expect the scale of results I've been seeing. I hear OpenAI's new Astra model has a similar level of coding to Fable.

    Music Applications

    Here's a quick look at 10 PySimpleGUI applications I wrote in less than 24 hours. They interface to my piano which has a MIDI in/out on it. They're shockingly sophisticated and work really well. Some of them I gave it a rough design, others I asked it to create something interesting.

    Right out of the box there were numerous UI designs that are not typical with PySimpleGUI. For example a full-screen button and keyboard shortcut that is like an F11 key in Windows apps. And a collapsible settings area instead of a settings popup. This enabled changing of settings in realtime, something I use a LOT with these apps. The apps have a single button display/hide button for the settings.

    Here's one of the crazier examples in my opinion. I asked for a "Follow Me" program that displays sheet music and colors the notes based on how hard I press the key. It shows where I play incorrect notes, missed notes or added notes, all right on the sheet music I normally use. It also shows me a tempo indicator at the bottom. This one feature, seeing the tempo I'm playing at, has had a dramatic impact on how I play. It's like finally having a speedometer in a car after driving your whole life without one.

    I've questioned whether I'm capable of writing some of the programs Claude's been writing. It feels like I can't, but I think it's the incredible speed the code is being generated at that has a crushing feeling to it.

    Maybe I can write code that does the same things, but it would take me perhaps months... and I just saw Claude do it in under 4 minutes.

    Image Image Image

    Hope everyone is enjoy the existential crisis Image

    Sorry for the really long post. Much of the AI journey has felt like a strange existential crisis even though I'm not being personally effected like so many other software engineers are. It's hard not to feel a little under assault. Lots of sorting things out happening. Wanting to get the ball rolling on getting some of these things released to see what it does in the longer run.

  20. PySimpleGUI commented on Sep 20, 2026

    @PySimpleGUI
    Owner

    psgdnd 6.0.6

    Yesterday I released 6.0.5 with the previously mentioned Rules feature. This morning I tweaked the colors of the demo programs.

    Demo Program

    The rules that were used:

    # ---- Drag & drop rules: only the exceptions are listed; everything else gets psgdnd's default for its element type ------------------------
    DND_RULES = {K_PATH: psgdnd.Rule(ext=('.txt', '.md', '.py')),                   # one file, only these extensions (no-entry cursor for others)
                 K_FILES: psgdnd.Rule(multiple=True),                               # several files, joined with ';' like sg.FilesBrowse
                 K_EDITOR: psgdnd.Rule(files=psgdnd.CONTENTS, text=psgdnd.INSERT)}  # a dropped text file is loaded; dropped text goes at the cursor
    DND_SKIP = [K_SEARCH]          

    This was the enable call that passed in the Rules and the elements to refuse drops:

        count = psgdnd.enable(window, rules=DND_RULES, skip=DND_SKIP)              # <-- the whole drag & drop integration

    Built-in Demo Program

    If you run python -m psgdnd than you'll see a the demo window below. I shot this screen recording on Linux rather than Windows for a change. Each OS has their own drop cursors and it seems they differ between Windows 10 and 11.

    vmware_LiVUU8wX9j.mp4

    A wide selection of Rules and elements are shown in the demo. Maybe I'm easily impressed, but I'm liking the kinds of things I'm seeing. I never thought of using Rules as a way to drive much of the drag and drop functionality to where it just happens without any additional programming. It's feels clever to me, but most likely it's what it saw as the best solution based on seeing zillions of implementations of similar problems. "Unreasonably good" continues to be the best way to describe the output.

  21. PySimpleGUI commented on Oct 15, 2026

    @PySimpleGUI
    Owner

    Back soon....

    I expect to be back here soon. I've been working through what I think I should be working on to help people the most and what will bring back a bit of the magic that recent AI usage has crushed. While incredibly fun to "write" some applications to help me with music, it has had an impact that I was aware of, but didn't think I would have any negative consequences from coding with Claude.

    There's a3 things I'm working through in particular

    1. How to put the fun back into coding
    2. The kinds of things I should be working on
    3. How to roll out changes or code that Claude has written

    The first I'll eventually figure out after working through the process of coming to terms with the new software world, again.

    The second has been interesting to think about. I recently added some new API calls and features to PySimpleGUI that may not make sense in the new era of coding. Claude doesn't need simpler interfaces. It can writing the code using existing interfaces, including going straight to tkinter. One that's been helpful has been the psgdnd drag and drop package. It's a new capability which keeps the code size smaller. Anyway, it feels like there are classes of problems that have value.

    The third, rolling out Claude changes/new code is simply anxiety around what was a controversial topic, use of AI in projects. I think the controversy has largely disappeared. I also need to get comfortable with having someone/something else in my code and projects.

    How PySimpleGUI is useful right now

    There are a lot of ways for me to develop application and tools with a user interface. Of course, PySimpleGUI is one of the only ones I understand, but with Claude, that's now really a requirement, but I still want to stick with something I could debug or instruct Claude on how to use better.

    A big benefit I've experienced myself, running my applications on multiple computers is that a pyw file only needs to be double clicked to run. I can download a file to any machine and off I go. Same with distributing to other Python users. There's no compilation step, no binaries to attach. If a binary is needed, PyInstaller is an option. The problem with PyInstaller is in making Mac applications. You need a Mac to make Mac application... or you used to need one. Now GitHub actions is capable of making a Mac application!

    Building a Mac app without a Mac

    PyInstaller has to run on the operating system you're building for. A Windows PC can't produce a Mac app, and I don't own a Mac. GitHub Actions solves this: GitHub will lend you one of its Mac machines to run a script, and the free monthly allowance covers it.

    The setup is one file in the repo, .github/workflows/build-mac.yml. When I click Run workflow on the repo's Actions tab, GitHub:

    1. starts a fresh Mac and installs Python and my program's packages,
    2. runs PyInstaller to turn the .pyw into PlayerCoach.app,
    3. starts the app once to make sure it doesn't crash,
    4. zips it up for me to download from the finished run.

    About 5–10 minutes later I have a Mac app to send to friends.

    Because the app isn't signed with a paid Apple developer account, macOS blocks it the first time it's opened. Each person allows it once, under System Settings ▸ Privacy & Security ▸ Open Anyway.

    Cost: public repos are free. Private repos count Mac minutes at 10×, so one build uses about 50 of the 2,000 free minutes a month.

    Gotcha: "Re-run jobs" repeats a run with the old files. After a fix, use Run workflow instead.

  22. PySimpleGUI commented on Oct 30, 2026

    @PySimpleGUI
    Owner

    Frozen 🔥→ ❄️

    Hell has frozen rock solid as of yesterday when I checked in changes to PySimpleGUI.py made by Claude. Can't believe I typed that phrase. But, times change and so did my outlook. There's been a lot of "I can't imagine ever doing that...." followed by "... until just now" months later. It's been a difficult few weeks trying to redefine what programming looks like for me and what kind of part PySimpleGUI may play.

    The model and the effort matters... that's how I've experienced using Claude Fable 5 the past few months. From a user of software, it's been a lot of fun getting all the special tools that I've not been able to find. As a developer, it's not been fun at all as I feel no sense of accomplishment.

    Finding new meaning

    It's felt like a loss of meaning, so I've been searching for something to grasp onto, and I think I may have found three things that are providing some sense of contribution.

    1. Bug fixing - The more PySimpleGUI code I am generating and running, the more little bugs I'm running into.
    2. Providing example applications that show some interesting capabilities of PySimpleGUI. I've never known how to implement a bunch of the interfaces that I'm running now, or if they were even possible.
    3. PySimpleGUI may be particularly well-suited for development with LLMs.

    PySimpleGUI and AI-Generated Code

    One thing that's kept me working on PySimpleGUI is that I'm seeing really great results. The development cycle is immediate. Code is generated, saved, double-clicked. No compiling or building. The applications look and work better than I thought a PySimpleGUI app could.

    The simplicity of PySimpleGUI code, in theory, is easier for LLMs to write and debug than the typical OO framework. That's what Claude claims, but until some actual tests are run, I can't really claim the results are better or more reliably generated. Sounds like something that will be interesting to investigate.

    Several bugs fixed by Claude

    I've been seeing plenty of evidence that Claude is quite capable of fixing PySimpleGUI bugs. And more often than not, much more capable than I am, especially since it knows every tkinter, Python, Windows, Mac, and Linux quirk that exists. That's why I checked in some changes yesterday and today.

    I want to get version 6.4 done and posted to PyPI soon since there are crashing bugs in the 6.3 release. The 6.3.18 release from today may be a good candidate for 6.4. I did a regression test to see how it compared to releases back in August. It checked out versus release 6.3.11. I plan on posting the regression tests in the future. Below is a first stab at one.

    🧪 PySimpleGUI 6.3.18 — Screenshot Regression Results

    Tip

    ✅ PASS — all 66 screenshots match the baseline — New 6.3.18 vs Baseline 6.3.11

    🟢 PASS 🔴 FAIL ⛔ ERROR 🟡 Missing in new 🟡 New screenshot
    66 0 0 0 0

    Fail threshold 0.1 % mean pixel difference · PNGs: baseline 66, new 66 · pairs compared 66 · compare_screenshots_gui.py v1.2 · 2026-10-29 20:43

    Test environment

    Baseline Aug26_6.3.11 New 2026-10-29_6.3.18
    PySimpleGUI 6.3.11 6.3.18 🔸
    Python 3.12.10 64 bit (AMD64) 3.12.10 64 bit (AMD64)
    Tcl/Tk 8.6 8.6.15 🔸
    OS Windows-11-10.0.26200-SP0 Windows-11-10.0.26200-SP0
    Windows build — 26200.9711 (25H2) 🔸
    Run date 2026-08-26 19:02 2026-10-29 05:35

    🔸 = changed since the baseline run

    All 66 results
    File Status Details
    SNAP_01_text_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_01_text_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_02_input_all_params.png 🟢 PASS 0.0001% pixel difference
    SNAP_02_input_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_03_button_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_03_button_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_04_Budug_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_04_Budug_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_05_listbox_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_05_listbox_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_06_checkbox_radio_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_06_checkbox_radio_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_07_spin_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_07_spin_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_08_slider_all_params.png 🟢 PASS 0.0001% pixel difference
    SNAP_08_slider_update.png 🟢 PASS 0.0001% pixel difference
    SNAP_09_progressbar_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_09_progressbar_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_10_frame_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_10_frame_column_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_11_multiline_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_11_multiline_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_12_table_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_12_table_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_13_tree_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_13_tree_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_14_graph_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_14_graph_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_15_column_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_16_tab_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_16_tabgroup_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_buttonmenu_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_menu_buttonmenu_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_menu_update_1_def_replaced.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_menu_update_2_hidden.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_menu_update_3_noop.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_01_default.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_02_no_titlebar.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_03_resizable_min_size.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_04_keep_on_top.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_05_alpha_channel.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_06_disable_close.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_07_disable_minimize.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_08_location_anchor_center.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_09_relative_location.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_10_custom_size.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_11_margins.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_12_element_padding.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_13_button_color.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_14_font.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_15_background_color.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_16_return_keyboard_events.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_17_right_click_menu_colors.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_18_modal.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_19_element_justification_center.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_20_tooltip_colors.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_21_default_element_size.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_22_default_button_size.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_23_text_justification.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_24_border_depth.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_25_progress_bar_color.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_26_ttk_theme.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_27_custom_titlebar.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_28_window_sbar_colors.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_29_watermark.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_30_scaling.png 🟢 PASS 0.0000% pixel difference
  23. PySimpleGUI commented on Oct 30, 2026

    @PySimpleGUI
    Owner

    I wrote last night a little about the theory that PySimpleGUI code may work particularly well with LLMs. Since the project conception, I've claimed it's easier for beginners, but it was Claude that mentioned it may be better for LLMs too. That seems like a very interesting question, especially since I don't have to write all the code myself. I'm not looking to be able make a "PySimpleGUI is better" claim. It really depends on the application specifics. I'm curious, which generally leads to interesting activities. Here's Claude's explanation...

    PySimpleGUI and AI-Generated Code: A Hypothesis and a Proposed Test

    The hypotheses and proposed test below came from Claude when asked whether
    PySimpleGUI has advantages for AI-generated code. The PySimpleGUI project plans
    to run the experiment and publish the results.

    Claude's hypothesis

    AI assistants should produce working PySimpleGUI programs more reliably than
    programs written directly in tkinter, for three reasons:

    1. Less code. A PySimpleGUI program is typically a fraction of the size of
      the tkinter equivalent. Less generated code means fewer places to go wrong.
    2. Layouts are data. A window is a list of lists, not a sequence of widget
      and geometry-manager calls.
    3. One event loop. Program logic sits in a single loop instead of callbacks
      spread across functions.

    Claude's own assessment: these are plausible but untested, and the likely
    outcome is a tie on simple apps with differences appearing only on harder ones.

    What existing research says

    No study compares PySimpleGUI and tkinter with AI. Related findings:

    • Supports (1): incorrect AI-generated code is measurably longer than correct
      code, and accuracy drops as output and prompt length grow.
      (Tian et al. 2024,
      Mayer et al. 2024)
    • Supports (3), weakly: most AI code errors span multiple lines and are logic
      errors, not typos. (Wang et al. 2024)
    • Context: current models score near zero on building complete GUI
      applications that behave correctly, even when the code runs.
      (Peng et al. 2026)
    • Cuts against the hypothesis: AI models hallucinate more on APIs they've
      seen less often, and tkinter appears in far more training data than
      PySimpleGUI. (Jain et al. 2024)

    Hypothesis (2) has no research behind it either way.

    The proposed test

    Details may change as the specs are written, but the shape is:

    Image

    Specs, prompts, pass criteria, and model versions will be published before the
    run; all results published after, whichever way they come out. Small differences
    will be reported as a tie; the threshold will be set and published before the run.

  24. PySimpleGUI commented on Oct 30, 2026

    @PySimpleGUI
    Owner

    New UI Capability

    On Aug 21st (above) I showed images and a video of my "launcher" utility that I use constantly. It was an accomplishment that create the settings window with the entries that can be shuffled around. Keeping with the recent trend of me expanding the capabilities of my applications with the help of my coding partner, I decided to add drag & drop capability to create the entries and to be able to change the order of the entries by dragging them around.

    This screen capture shows adding a new entry by dragging and dropping a .pyw file onto the list of entries. Then I repositioned the location of the new icon to be a little higher up in the last, saved the settings and launched the app from the launcher. It's not perfect by any means, but I wasn't sure I would ever see the ability to order entries by dragging them around.

    I'll be posting several of these kinds of apps and or demos into a new repo soon.

    Screen.Recording.2026-10-30.143652.mp4
  25. PySimpleGUI commented on Nov 2, 2026

    @PySimpleGUI
    Owner

    Releases today and tomorrow

    Candidate PySimpleGUI 6.4 Release on GitHub

    This morning I posted a candidate release for 6.4 on GitHub. The plan is to release it to PyPI tomorrow.

    psgdnd PyPI Release

    A new release of psgdnd was posted to PyPI today. This release has the expanded API support that was released recently to GitHub. It's needed for the releases coming tomorrow.

    psgshortcut

    A new release of psgshortcut was posted to GitHub today. This release reworks the user interface. It uses drag and drop to make the process of making a shortcut as simple as a drag, drop, button click. It you're making a shortcut for a PySimpleGUI program, it will get your custom icon from your code and create the shortcut using it.

    You can pip install it from GitHub if you want to use it prior to the PyPI release.

    Image

    PySimpleGUI Playground

    A fun new repo is coming! I was shooting for today, but you know how software releases go.... rarely on time. I decided to wait a day so it's not rushed. I'm excited about this one and think some of you may be too.

    Release 6.4 Regression Test Results

    Here's the regression run for the automated PySimpleGUI tests. One test failed to fun on 6.3.0.1 due to a bug that's fixed in 6.4. Everything else checked out fine.

    🧪 PySimpleGUI 6.4 — Screenshot Regression Results

    Caution

    1 of 66 screenshots flagged for review — New 6.4 vs Baseline 6.3.0.1

    🟢 PASS 🔴 FAIL ⛔ ERROR 🟡 Missing in new 🟡 New screenshot
    65 0 0 0 1

    Fail threshold 0.1 % mean pixel difference · PNGs: baseline 65, new 66 · pairs compared 65 · compare_screenshots_gui.py v1.3 · 2026-11-01 20:42

    Test environment

    Baseline 2026-11-01_6.3.0.1 New 2026-11-01_6.4
    PySimpleGUI 6.3.0.1 6.4 🔸
    Python 3.12.10 64 bit (AMD64) 3.12.10 64 bit (AMD64)
    Tcl/Tk 8.6.15 8.6.15
    OS Windows-11-10.0.26200-SP0 Windows-11-10.0.26200-SP0
    Windows build 26200.9711 (25H2) 26200.9711 (25H2)
    Run date 2026-11-01 07:29 2026-11-01 07:27

    🔸 = changed since the baseline run

    All 66 results
    File Status Details
    SNAP_01_text_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_01_text_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_02_input_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_02_input_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_03_button_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_04_Budug_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_04_Budug_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_05_listbox_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_05_listbox_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_06_checkbox_radio_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_06_checkbox_radio_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_07_spin_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_07_spin_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_08_slider_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_08_slider_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_09_progressbar_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_09_progressbar_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_10_frame_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_10_frame_column_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_11_multiline_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_11_multiline_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_12_table_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_12_table_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_13_tree_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_13_tree_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_14_graph_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_14_graph_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_15_column_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_16_tab_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_16_tabgroup_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_buttonmenu_update.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_menu_buttonmenu_all_params.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_menu_update_1_def_replaced.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_menu_update_2_hidden.png 🟢 PASS 0.0000% pixel difference
    SNAP_17_menu_update_3_noop.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_01_default.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_02_no_titlebar.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_03_resizable_min_size.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_04_keep_on_top.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_05_alpha_channel.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_06_disable_close.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_07_disable_minimize.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_08_location_anchor_center.png 🟢 PASS 0.0027% pixel difference
    SNAP_18_window_09_relative_location.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_10_custom_size.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_11_margins.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_12_element_padding.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_13_button_color.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_14_font.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_15_background_color.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_16_return_keyboard_events.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_17_right_click_menu_colors.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_18_modal.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_19_element_justification_center.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_20_tooltip_colors.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_21_default_element_size.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_22_default_button_size.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_23_text_justification.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_24_border_depth.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_25_progress_bar_color.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_26_ttk_theme.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_27_custom_titlebar.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_28_window_sbar_colors.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_29_watermark.png 🟢 PASS 0.0000% pixel difference
    SNAP_18_window_30_scaling.png 🟢 PASS 0.0000% pixel difference
    SNAP_03_button_update.png 🟡 New screenshot Exists in new but not in baseline

    Flagged screenshots (1)

    Status File Details
    🟡 New screenshot SNAP_03_button_update.png Exists in new but not in baseline
    Image
  26. PySimpleGUI commented on Nov 2, 2026

    @PySimpleGUI
    Owner

    PySimpleGUI 6.4, psgdnd 6.1 and the PySimpleGUI Playground

    A big day of releases. Three things are out today.

    PySimpleGUI 6.4 is on PyPI

    python -m pip install --upgrade PySimpleGUI
    

    6.4 rolls up everything that's been on GitHub since 6.3.0.1 (6.3.1 through 6.3.19). The highlights:

    • Each PySimpleGUI program gets its own taskbar identity on Windows, so the right icon shows when several are running
    • resizable can be a tuple - resizable=(False, True) resizes vertically only
    • popup_error_with_traceback shows the full traceback in a Multiline so you can copy all of it
    • The mouse wheel keeps scrolling a scrollable Column when the pointer is over an element inside it
    • Window creation reworked for Linux and Wayland

    The full list is in the README. The release went through the 66 screenshot regression tests first. On Windows 6.4 matched 6.3.19 everywhere. On Linux 65 matched, and the 66th is the see-through window, where only the desktop showing through is different.

    Changes Claude made are marked "Claude:" in the changelog.

    psgdnd 6.1

    The one-line enable() call for drag and drop was only on GitHub. It's on PyPI now:

    python -m pip install --upgrade psgdnd
    

    The PySimpleGUI Playground

    This is the part I'm most excited about. The Playground is a collection of the programs I run on my own PCs every day - desktop widgets, tools, the things I use to work on PySimpleGUI itself, and 11 piano practice programs for a MIDI keyboard. I wrote them with Claude over the past 10 weeks. Each one is a single file.

    One command installs all of them, plus the Toybox, a program that allows you to navigate, explore and run the apps that are included:

    python -m pip install --upgrade psgplayground
    psgplayground
    

    The newest version is always on GitHub:

    python -m pip install --upgrade https://github.com/PySimpleGUI/psgplayground/zipball/main
    

    There's also a prompts folder in the repo - one page per trick (the frameless window, draggable panes, drag-to-reorder, dropping a file) with a prompt you can paste into any AI chatbot to get the same thing in your own program.

    https://github.com/PySimpleGUI/psgplayground

  27. PySimpleGUI commented on Nov 4, 2026

    @PySimpleGUI
    Owner

    Playground Applications

    Prototype -> Complete App

    One of the biggest changes to the PySimpleGUI applications over the past few weeks is that they're getting completed. Many of the apps were written as a starting point for developers to experiment with PySimpleGUI components. For example, psghotkey was written as one of the first examples of a system tray application. It was functional, but it required you to hard code the keys and actions in the source code itself. That's fine for developers, but not anyone else.

    User Interface Upgrade

    This is where use of Claude has really paid off. It's been a lot of fun to design and code up 100's of sample PySimpleGUI applications. While I appreciate the aesthetics of user interfaces designed by a graphic designer, I lack those skills (obviously). It takes a long time to design, implement, and polish a nice looking GUI. I tended to opt for functional over fancy. I was simply happy to be able to write my own apps that worked.

    psghotkey

    The new interfaces look great and have a new kind of theme built into them making it possible for users to modify the look of the app on an individual app basis, without needing to modify the source. The difference between the two windows is striking to say the least.

    Image Image

    Here's a look at the new theming

    Image

    psgdock

    I'll space everyone some of my first attempts at "launchers" over the past many years. While not attractive, they were extremely functional. From recent posts here (scroll up), you've seen the most recent version I wrote and have been using. It was much fancier than prior versions.

    The rework of this app turned out much better than I expected. Much of the design & code that I wrote for it was reused. Since there's another viewing mode was added, and it's never been released before, I changed the name to "psgdock" as it's now more like a dock.

    The old version...

    Image

    The new-era version...

    Screen.Recording.2026-11-04.065554.mp4

    The New Theming

    I mentioned an application level theme earlier. Here's a quick look of what that looks like.

    Screen.Recording.2026-11-04.070118.mp4
  28. PySimpleGUI commented on Nov 4, 2026

    @PySimpleGUI
    Owner

    New psghotkey released to PyPI

    I just released to PyPI psghotkey with the new user interface and fully-function features. To install and use it:

    python -m pip install psghotkey
    psghotkey
  29. PySimpleGUI commented on Nov 5, 2026

    @PySimpleGUI
    Owner

    Docking the dock

    Having renamed my "launcher" as "dock", seemed like it should get a docking kind of behavior. I really like the drag placement with the blue highlighting of where the drop will go. It's shockingly fast. I guess I don't expect PySimpleGUI programs to be all that responsive when implementing fancy feature, but am pleasantly surprised with the end results.

    Also added:

    • the ability to create multiple docks
    • custom colors for the section heading
    • check on launch if the dock is already running

    There's a detailed change log at the top of the code like in all PySimpleGUI programs.

    Here's how it looks in action on my desktop.

    Dock.docking.mp4
  30. PySimpleGUI commented on Nov 26, 2026

    @PySimpleGUI
    Owner

    PySimpleGUI Anywhere

    PySimpleGUI.net is the place to try your PySimpleGUI code in a browser. It also shows how to make a link you can hand out that runs your app.

    I've had a dream for a long time of getting PySimpleGUI running on a phone or tablet. There have been some clunky mock-up ports over the years. The closest I've come is likely the PSGWeb prototype built by my friend Tim. I've written about PSGWeb a few times in the past.

    PySimpleGUI Anywhere takes that same design direction: Pyodide puts the Python environment in a browser tab, and a custom tkinter replacement, written in JavaScript, draws the windows. Your program and PySimpleGUI itself run unchanged. Claude provided the code, I provided the direction and $$ for compute.

    My Use Case - Imprint

    I've been developing a music application (Imprint) that has been transformative in my music education. It's taught me phrasing and dynamics, something I've struggled with for decades. In a couple of weeks, it enabled me to play pieces with a fantastic balance of speed and volume.

    I wrote it for myself, with no intention of distributing it, but it's been an extraordinary experience worth sharing. I'm done with business so it's all just for fun and to give away.

    The biggest issue with distributing this program was the devices most people use while at a piano. "Some kind of pad" is the primary choice... I run the code on a Windows tablet computer, which works very well with PySimpleGUI of course. Most people don't use a Windows tablet. Most are using an iPad or Android tablet, which is why PySimpleGUI Anywhere was developed: so the same code can run on whatever is sitting on the piano.

    One catch on an iPad: Safari and the other ordinary browsers there have no MIDI, so a program runs but cannot hear the piano. The free app MIDIWeb Browser adds it - with it my iPad hears my piano and plays it. Android tablets, and anything with Chrome or Edge, need nothing extra.

    I'm surprised/shocked that the PySimpleGUI code I run on Windows, which needs low latency and millisecond level timing, has no performance issues on the devices I've run. It's been surprising that an application this complicated was built using PySimpleGUI.

    Using PySimpleGUI Anywhere

    • Go to PySimpleGUI.net
    • Run your program - drag and drop a PySimpleGUI file, copy and paste code, or give it a GitHub link to your program

    It needs a current browser: Chrome or Edge 137 or newer, Firefox 153 or newer, or Safari on iOS / iPadOS / macOS 27 or newer.

    image

    Application Display Controls

    There are a couple of controls on the left side of the window that control how your application and browser look. Here's an app with the two controls visible.

    image

    On a phone or tablet the app is shown as large as the screen allows by itself, and the first tap hides the browser's bars.

    Sharing a Program

    To share a program, put https://pysimplegui.net/? in front of its GitHub address. For example, this link runs the All Elements Demo Program (it asks "Run this PySimpleGUI program?" first - one click):

    https://pysimplegui.net/?https://github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_All_Elements.py

    A Piano with an iPad or iPhone

    Android tablets, and anything running Chrome or Edge, can talk to a piano or keyboard (MIDI) as they are. An iPad or iPhone needs one free app, because Safari gives web pages no MIDI:

    1. Get MIDIWeb Browser from the App Store (free).
    2. Connect the piano to the iPad the way you do for any music app (USB or Bluetooth MIDI).
    3. Open the program's address in MIDIWeb Browser - type or paste it there. A link tapped in Mail opens Safari instead.
    4. Allow MIDI if it asks, and pick your piano in the program.

    It needs iPadOS / iOS 27 or newer. The page says all this itself when a program asks for a piano in a browser that has none: A piano with an iPad or iPhone.

    Limitations

    What is different in a browser:

    • Packages your program imports are downloaded by themselves: plain-Python packages, and the ones built for browsers (numpy, Pillow, matplotlib and more).
    • Threads work, but they take turns: only one runs at a time.
    • A program cannot start other programs.
    • It cannot look through the files on your device. It can open a file you hand it (an Open dialog), and it has a small folder of its own.
    • It can read a web address (urllib) on sites that allow web pages to. It cannot open network connections of its own.

    What a program remembers:

    • Started from a button on the page, a short link, or a file you chose or pasted: its settings are saved in your browser, on that device - they are there the next time.
    • Started from an address (a GitHub link): nothing is saved. It starts fresh every time.

    Details of Working Environments

    You'll find detailed information about the runtime environments, Python features, etc here:

    Where it runs - which browsers and devices, what a program can use, what is kept on your device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    All Portsannouncements

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions