shinshin86 / pysimplegui-mac-app-sample

This is a sample for launching a GUI application using PySimpleGUI with a double-click from the mac Finder.
2 stars 0 forks source link

Is there a pythonw on the Mac? #1

Open PySimpleGUI opened 2 years ago

PySimpleGUI commented 2 years ago

On Windows, pythonw.exe makes this launching problem trivial.

I will likely be renaming a number of the PySimpleGUI Demo Programs as .pyw files in the future. It's the best option I think available for a user experience that closely resembles how everyone uses PCs, at least on Windows.

It's remarkable the difference renaming to .pyw does:

py vs pyw

shinshin86 commented 2 years ago

@PySimpleGUI Wow! pythonw.exe very useful. In the case of using PySimpleGUI on Windows, it's a great experience.

As far as I can tell, mac doesn't seem to have a feature similar to pythonw. That would be very nice to have...

Thanks a lot for your great comments!

PySimpleGUI commented 2 years ago

It's great to see you working on this problem. Anything that helps make the experience as "normal" as possible is a great help to all users of that platform. Linux too seems to have this problem, but it's not as big of a deal I don't believe, although a double-click experience would attract a wider, more diverse group of users.

shinshin86 commented 2 years ago

@PySimpleGUI Thank you. I'm glad you said that.

I feel that if the user who feels like using a GUI, and if the user of the application is not a developer, there are more than a few people who, if possible, would like to launch the application with a double click, just like a normal application. (In fact, some of my acquaintances do).

I would be very happy if this repository could be useful for those people.

PySimpleGUI commented 2 years ago

I'll write up a Cookbook Recipe with instructions for Windows. I have worked out a nice workflow that enables users to "pin" a .pyw file onto the taskbar so that it's a 1-click start experience.

I've got the steps down to enable Windows users to take any .pyw file and pin it on the taskbar for easy launching.

In this case, I've pinned the little Launcher I've been playing with the past couple of days.

pgyhFG6Zpt

It's pretty crude and cobbled together, but it's a start and is a pretty good template. If a launcher like this is used, you only need 1 thing to start. Everything else is started via the launcher.

https://github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_Desktop_Widget_Launcher_Bar.pyw

My personal launcher has gotten a tad large, so I'm looking at this bar format with the ability to switch between panels to see if maybe that's a better approach than this massive launcher:

image

PySimpleGUI commented 2 years ago

I'm also in the middle of a new EXE Maker being written that is much more full-featured. It should help in this whole distribution problem.

shinshin86 commented 2 years ago

@PySimpleGUI That's great! I think these moves are useful information for all users of PySimpleGUI. I look forward to future developments.

PySimpleGUI commented 2 years ago

This morning I released a new Demo and a new section to the Cookbook to hit this head-on.

https://pysimplegui.readthedocs.io/en/latest/cookbook/#recipe-no-console-launching

The Demo Program will help on Windows by making a shortcut complete with icon, etc. It's 1 program to convert to an icon that can be used to launch your program without ever opening a dos window/shell or even explorer.

https://github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_Make_Windows_Shortcut.pyw

mt7O7CQbHd

shinshin86 commented 2 years ago

@PySimpleGUI Sorry for the delay in replying. Wow. That's a great release! For Windows users, it will be one of the very useful features. I usually use a mac, but I will try this feature when I use Windows.

PySimpleGUI commented 2 years ago

I've been using a this tool a LOT lately! It's fantastic for pinning to the Windows Taskbar. I've been working on my new launcher and this shortcut tool is what made the link/icon that launches the launcher.

yjX0mRfM9f

On another machine that isn't a development machine but rather one for general use, these icons really help make things appear like normal Windows programs, again by pinning shortcuts or placing them on my desktop.

PySimpleGUI commented 2 years ago

I've also released psgfiglet, the first pip installable PySimpleGUI application that I've released using pip as a distribution mechanism for releasing GUI applications.

pip install psgfiglet psgfiglet

It should run on all OS's image

shinshin86 commented 2 years ago

@PySimpleGUI Wow! That's another exciting announcement. It works on all OS, which is great news for mac users like me. I'm going to try it out soon.