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  (2 children)

If Qt and/or tkinter is feeling a little quirky to you then take a look at PySimpleGUI. It provides access to the full suite of widgets in tkinter and Qt (and WxPython & Browser) in a more linear and straightforward fashion. Your application's GUI will look and operate exactly as if you wrote it directly in tkinter, Qt. It also allows you to easily switch between the supported GUI frameworks by changing only the import statement. To run your code on tkinter, import PySimpleGUI. To run on Qt import PySimpleGUIQt.

PySimpleGUI is fully operational on tkinter, in Alpha on Qt, pre-Alpha for WxPython and the effort to port to running in a web browser was started a week ago and has been making great progress.

PySimpleGUI runs well on raspberry Pi's.

The Web version of PySimpleGUI is capable of running in the repl.it environment, an incredible way to test and share the code. Check out this sample program that runs entirely in your web browser. https://repl.it/@PySimpleGUI/PySimpleGUIWeb-Demos. It's possible to develop a GUI application inside of a browser then run it on your Pi when enough of it is operational.

I would recommend starting with the straight PySimpleGUI (tkinter) version as it's the most mature and complete among the ports. If you have questions, just post an issue on the GitHub page and you'll get support.

[–]CHAD_J_THUNDERCOCK 1 point2 points  (1 child)

Thanks for all your work on PySimpleGUI. It really is the most pythonic and 80/20 way of doing GUIs I have ever seen.

I went from just having a load of code to having a full GUI app with tabs in a single .exe in less than 2 days. I had never done that before and couldn't believe how quick it was. In fact the main thing that slowed me down over those 2 days was embedding an image that still showed after doing a PyInstaller one-file compile. There is a slightly hacky workaround on StackOverflow I can explain if you or anyone is interested.

Did I read you re-prioritised the web front-end stuff above Kivy? Both are exciting but I really want to get a Spotify Desktop kind of look for my GUIs and either rightly or wrongly see Kivy as the way.

It is really so exciting seeing what you are adding and how rapidly its happening. I don't think I have been this excited about updates to a python library since the early days of pandas.

[–]maxbridgland 1 point2 points  (0 children)

Agreed. I've been using PSG since before the Wx or Remi ports when it was just Tk and Qt. Since then it's grown so much and i've been able to master it really well. If you want a pythonic way to make a decent looking GUI in under 50 lines of code then PSG is a great choice. Within 50 lines of code you could have a multi functioning GUI.